aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2020-03-13 10:33:13 -0700
committerManoj Gupta <manojgupta@chromium.org>2020-03-13 21:57:47 +0000
commit99b3ff928b1c000980d331f30174614484095d37 (patch)
tree9dc95db6f7026a61d26f8e1c543550e5ebf0d38f /compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json
parentfbb16169c0cb546b48c849ec06853018a2cf1e22 (diff)
downloadtoolchain-utils-99b3ff928b1c000980d331f30174614484095d37.tar.gz
compiler_wrapper: Add "-fcommon" to clang invocations
Clang ToT has switched to "-fno-common" as default to match GCC 10 which breaks many packages. Upgrading to ToT versions of many packages does not fix the problem as packages upstream have not fixed them yet. Pass "-fcommon" in compiler wrapper to workaround this for now. This does not change the current clang behavior which defaults to "-fcommon" so this is a NFC. BUG=chromium:1060413 TEST=packages build with ToT clang; NFC for current clang Change-Id: I5a40e502db201615f45a7e4720105bebef2f2b0a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2102905 Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json')
-rw-r--r--compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json b/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json
index 6e897172..afb0329e 100644
--- a/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json
+++ b/compiler_wrapper/testdata/cros_clang_host_golden/clang_host_wrapper.json
@@ -17,6 +17,7 @@
"-Qunused-arguments",
"-grecord-gcc-switches",
"-fno-addrsig",
+ "-fcommon",
"-fuse-ld=lld",
"-Wno-unused-local-typedefs",
"-Wno-deprecated-declarations",