diff options
author | Jayant Chowdhary <jchowdhary@google.com> | 2017-06-15 14:45:18 -0700 |
---|---|---|
committer | Jayant Chowdhary <jchowdhary@google.com> | 2017-06-19 19:43:03 -0700 |
commit | 9677e8c6adbede1b661703521b45827d1abb58db (patch) | |
tree | 4513c0e16d609b3bdd5c1b6bc88bd4fe82e2fd5c /cc/makevars.go | |
parent | f47b0487822dac28e72d2af18ed3692732bac9f0 (diff) | |
download | build_soong-9677e8c6adbede1b661703521b45827d1abb58db.tar.gz build_soong-9677e8c6adbede1b661703521b45827d1abb58db.tar.bz2 build_soong-9677e8c6adbede1b661703521b45827d1abb58db.zip |
Black-list for clang LibTooling Cflags.
Add a list of flags which are not understood by clang LibTooling tools
and filter them out of the Cflags the tools are invoked with.
Test: In frameworks/av, make libmedia vendor_available (this invokes
header-abi-dumper on this module), mm -j64.
Bug: 62447349
Change-Id: I46f017212b89f4331145c999103d0ed44da0abaf
Diffstat (limited to 'cc/makevars.go')
-rw-r--r-- | cc/makevars.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/makevars.go b/cc/makevars.go index a1e97a51..2a5c8137 100644 --- a/cc/makevars.go +++ b/cc/makevars.go @@ -59,12 +59,12 @@ func makeVarsProvider(ctx android.MakeVarsContext) { ctx.Strict("BOARD_VNDK_VERSION", "") } - ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", asanCflags) - ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS", asanLdflags) - ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES", asanLibs) + ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(asanCflags, " ")) + ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_LDFLAGS", strings.Join(asanLdflags, " ")) + ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES", strings.Join(asanLibs, " ")) - ctx.Strict("CFI_EXTRA_CFLAGS", cfiCflags) - ctx.Strict("CFI_EXTRA_LDFLAGS", cfiLdflags) + ctx.Strict("CFI_EXTRA_CFLAGS", strings.Join(cfiCflags, " ")) + ctx.Strict("CFI_EXTRA_LDFLAGS", strings.Join(cfiLdflags, " ")) ctx.Strict("DEFAULT_C_STD_VERSION", config.CStdVersion) ctx.Strict("DEFAULT_CPP_STD_VERSION", config.CppStdVersion) |