Skip to content

Commit 82535e2

Browse files
feat!: improve build reproducibility by removing --generate-line-info (#406)
1 parent 1bf21ef commit 82535e2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cuda/private/toolchain_configs/nvcc.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def _impl(ctx):
450450
flag_sets = [
451451
flag_set(
452452
actions = [ACTION_NAMES.cuda_compile],
453-
flag_groups = [flag_group(flags = ["-O0", "--generate-line-info", "-Xcompiler", "-g1"])],
453+
flag_groups = [flag_group(flags = ["-O0", "-Xcompiler", "-g1"])],
454454
),
455455
],
456456
provides = ["compilation_mode"],

tests/flag/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ cuda_library_c_fastbuild_flag_test(
6464
contain_flags = [
6565
# gcc default to -O0 so bazel does not explicitly set the flag. Whereas nvcc defaults to -O3.
6666
"-O0",
67-
"--generate-line-info",
6867
"-g1",
6968
# There is no -gmlt option (not merged) as claimed in bazel user manual
7069
# https://codereview.appspot.com/4440072

0 commit comments

Comments
 (0)