summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Stephen Hines <srhines@google.com> 2021-02-25 06:31:22 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-02-25 06:31:22 +0000
commitf3e0d222343a7c14159372c7e98fde7f7bbbcb57 (patch)
treebb8e5aa4c69024217a555e3e0eb9e65c827ac7fc
parent805c74ca09b67f8b970fcfb312c913afc53559a4 (diff)
parentc28f5d97a6170ec0974da34051d1f9a23730e763 (diff)
Merge "reverses common and external Clang flags"
-rw-r--r--cc/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/compiler.go b/cc/compiler.go
index e96295c2a..2e71922e1 100644
--- a/cc/compiler.go
+++ b/cc/compiler.go
@@ -442,7 +442,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
fmt.Sprintf("${config.%sClangGlobalCflags}", hod))
if isThirdParty(modulePath) {
- flags.Global.CommonFlags = append([]string{"${config.ClangExternalCflags}"}, flags.Global.CommonFlags...)
+ flags.Global.CommonFlags = append(flags.Global.CommonFlags, "${config.ClangExternalCflags}")
}
if tc.Bionic() {