Chromium Code Reviews| Index: build/config/compiler/BUILD.gn |
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
| index 97eb6726ca36455f5b87284c80ecc8c85f8c875e..d3b3aaae9c086d671220fa29e2d0a0b6ff800c9b 100644 |
| --- a/build/config/compiler/BUILD.gn |
| +++ b/build/config/compiler/BUILD.gn |
| @@ -310,6 +310,14 @@ config("compiler") { |
| cflags += [ "-fcolor-diagnostics" ] |
| } |
| + # Makes builds independent of absolute file path. |
| + # Currently disabled for nacl since its toolchain is old and doesn't have this flag. |
|
brettw
2016/01/06 18:13:11
Long line
Zachary Forman
2016/01/06 23:20:49
Done.
|
| + # TODO(zforman): Once nacl's toolchain is updated, remove check. |
| + if (is_clang && !is_nacl) { |
| + absolute_path = rebase_path("//.") |
| + cflags += [ "-fdebug-prefix-map=$absolute_path=." ] |
| + } |
| + |
| # C++11 compiler flags setup. |
| # --------------------------- |
| if (is_linux || is_android || (is_nacl && is_clang)) { |