Chromium Code Reviews| Index: build/config/compiler/BUILD.gn |
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
| index 069f10b98123f4560bee01bcdaaea8cf674e22e3..919a1e28bfc2a18c90a5374d1adb24fcb5b9fa75 100644 |
| --- a/build/config/compiler/BUILD.gn |
| +++ b/build/config/compiler/BUILD.gn |
| @@ -92,6 +92,10 @@ declare_args() { |
| # Optimize for coverage guided fuzzing (balance between speed and number of |
| # branches) |
| optimize_for_fuzzing = false |
| + |
| + if (is_clang && is_linux) { |
| + strip_absolute_paths_from_debug_symbols = false |
|
brettw
2017/02/15 22:48:56
Can you add a comment above this (inside the condi
|
| + } |
| } |
| if (is_clang && !is_nacl) { |
| @@ -425,7 +429,7 @@ config("compiler") { |
| # clang-cl (used if is_win) doesn't expose this flag. |
| # Currently disabled for nacl since its toolchain lacks this flag (too old). |
| # TODO(zforman): Once nacl's toolchain is updated, remove check. |
| - if (is_clang && is_linux) { |
| + if (is_clang && is_linux && strip_absolute_paths_from_debug_symbols) { |
| absolute_path = rebase_path("//.") |
| cflags += [ "-fdebug-prefix-map=$absolute_path=." ] |
| } |