[llvm] e8e078c - [gn build] use -Xclang form for fdebug-comp-dir for now

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 16 18:30:38 PST 2020


Author: Nico Weber
Date: 2020-02-16T21:30:27-05:00
New Revision: e8e078c8bf7987b95298062a644bac9eed26f988

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

LOG: [gn build] use -Xclang form for fdebug-comp-dir for now

The driver version of the flag seems to confuse goma.

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 31d3ac5e5fc6..ee16424624a9 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -196,7 +196,9 @@ config("compiler_defaults") {
     }
     if (use_relative_paths_in_debug_info) {
       cflags += [
+        "-Xclang",
         "-fdebug-compilation-dir",
+        "-Xclang",
         ".",
       ]
     }


        


More information about the llvm-commits mailing list