Skip to content

Commit c2800a6

Browse files
authored
Remove -fdebug-prefix-map for toolchain (#440)
The relative paths to toolchain components in binaries does not affect hermeticity. It's possible these affect debugging instead, in which case remapping them requires users to add reverse maps in their debugger config. Instead leaving the paths as is makes these "just work" if users have an external/ symlink in the root of their repo (which is common for compile_commands.json as well).
1 parent de26c39 commit c2800a6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

toolchain/cc_toolchain_config.bzl

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def cc_toolchain_config(
118118
"-D__DATE__=\"redacted\"",
119119
"-D__TIMESTAMP__=\"redacted\"",
120120
"-D__TIME__=\"redacted\"",
121-
"-fdebug-prefix-map={}=__bazel_toolchain_llvm_repo__/".format(toolchain_path_prefix),
122121
]
123122

124123
is_xcompile = not (exec_os == target_os and exec_arch == target_arch)

0 commit comments

Comments
 (0)