diff options
Diffstat (limited to 'build/config/compiler/BUILD.gn')
-rw-r--r-- | build/config/compiler/BUILD.gn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index ab0d6c5..57b614c 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -307,6 +307,14 @@ config("compiler") { cflags += [ "-fcolor-diagnostics" ] } + # Makes builds independent of absolute file path. + # 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_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)) { |