From c68183b81e5257186c9403cf91f8b958af7459bc Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 5 Nov 2021 12:43:06 -0400 Subject: [PATCH] [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. --- llvm/utils/gn/build/BUILD.gn | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn index 8c28c15..3b22f6f 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 != "") { -- 2.7.4