aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/compiler_wrapper.go
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2021-05-09 12:57:40 -0700
committerManoj Gupta <manojgupta@chromium.org>2021-08-04 02:38:42 +0000
commita5ff0587131795e61fded5bc4961a0b936914bbf (patch)
tree6759cc0083583880ce152d4e4b5cd6199afe0869 /compiler_wrapper/compiler_wrapper.go
parenta0a6360987a17271c2a6bd5d2d5162dabdc0f31f (diff)
downloadtoolchain-utils-a5ff0587131795e61fded5bc4961a0b936914bbf.tar.gz
compiler_wrapper: Fix static libgcc handling
Do not add static-libgcc to compiler command line if user is passing {shared|static}-libgcc. BUG=b:187794119 TEST=CQ Change-Id: Iecd969dd11632837013bea71df9547bd08bbf30c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3064572 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Auto-Submit: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'compiler_wrapper/compiler_wrapper.go')
-rw-r--r--compiler_wrapper/compiler_wrapper.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler_wrapper/compiler_wrapper.go b/compiler_wrapper/compiler_wrapper.go
index e772484d..6d29ff0e 100644
--- a/compiler_wrapper/compiler_wrapper.go
+++ b/compiler_wrapper/compiler_wrapper.go
@@ -303,6 +303,7 @@ func calcGccCommand(enableRusage bool, builder *commandBuilder) (bool, *command,
func calcCommonPreUserArgs(builder *commandBuilder) {
builder.addPreUserArgs(builder.cfg.commonFlags...)
if !builder.cfg.isHostWrapper {
+ processLibGCCFlags(builder)
processPieFlags(builder)
processThumbCodeFlags(builder)
processStackProtectorFlags(builder)