commit | 58bb42ad7ca263a75c6eeef51482f805726663a5 | [log] [tgz] |
---|---|---|
author | Keith Smiley <keithbsmiley@gmail.com> | Tue Feb 02 02:44:04 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Feb 02 02:45:49 2021 -0800 |
tree | 914aeea0ce567a61203d12fb489f783efaa1467e | |
parent | 28fc8a1f7f7524d1b730da2a41341ce4aa1fea35 [diff] [blame] |
Revert "Switch to -fdebug-compilation-dir" This reverts commit 0cb8757781e3ab9b4aee06483b74b46a2e4c6126. This flag isn't supported by Xcode 11.2, which is the newest available version for macOS 10.14 https://github.com/bazelbuild/bazel/pull/12354#issuecomment-765399006 Fixes https://github.com/bazelbuild/bazel/issues/12905 Closes #12882. PiperOrigin-RevId: 355126529
diff --git a/tools/osx/crosstool/wrapped_clang.cc b/tools/osx/crosstool/wrapped_clang.cc index febf3cb..4035287 100644 --- a/tools/osx/crosstool/wrapped_clang.cc +++ b/tools/osx/crosstool/wrapped_clang.cc
@@ -318,6 +318,9 @@ } std::string dest_dir, bitcode_symbol_map; + if (SetArgIfFlagPresent(arg, "DEBUG_PREFIX_MAP_PWD", &dest_dir)) { + new_arg = "-fdebug-prefix-map=" + cwd + "=" + dest_dir; + } if (arg.compare("OSO_PREFIX_MAP_PWD") == 0) { new_arg = "-Wl,-oso_prefix," + cwd + "/"; }