[llvm] c68183b - [gn build] Use `=` for of -fdebug-compilation-dir

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 10:02:12 PDT 2021


Author: Nico Weber
Date: 2021-11-05T12:43:20-04:00
New Revision: c68183b81e5257186c9403cf91f8b958af7459bc

URL: https://github.com/llvm/llvm-project/commit/c68183b81e5257186c9403cf91f8b958af7459bc
DIFF: https://github.com/llvm/llvm-project/commit/c68183b81e5257186c9403cf91f8b958af7459bc.diff

LOG: [gn build] Use `=` for of -fdebug-compilation-dir

-f flags usually use the `=` form. -fdebug-compilation-dir= has been
around for a few months now (since 0c2bb6b446c584ab, both LLVM 12.0
and 13.0 have it), so using it shouldn't be a big problem -- especially
since use_relative_paths_in_debug_info is opt-in anyways.

Added: 
    

Modified: 
    llvm/utils/gn/build/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index 8c28c15a6680..3b22f6f30221 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -262,10 +262,7 @@ config("compiler_defaults") {
       }
     }
     if (use_relative_paths_in_debug_info) {
-      cflags += [
-        "-fdebug-compilation-dir",
-        ".",
-      ]
+      cflags += [ "-fdebug-compilation-dir=." ]
     }
   }
   if (sysroot != "") {


        


More information about the llvm-commits mailing list