Specify the API level via the triple instead of __ANDROID_API__.
Clang derives the value of __ANDROID_API__ from the triple these days. In a future version of clang I plan to start making the behaviour of the HWASAN pass dependent on the API level in the triple, so it's going to need to be accurate. Test: walleye-userdebug boots Change-Id: Ie5e36b5c8f6dcda084cc12b1160abbdf94765174
This commit is contained in:
@@ -249,9 +249,9 @@ func makeVarsToolchain(ctx android.MakeVarsContext, secondPrefix string,
|
||||
}
|
||||
|
||||
clangPrefix := secondPrefix + "CLANG_" + typePrefix
|
||||
clangExtras := "-target " + toolchain.ClangTriple()
|
||||
clangExtras += " -B" + config.ToolPath(toolchain)
|
||||
clangExtras := "-B" + config.ToolPath(toolchain)
|
||||
|
||||
ctx.Strict(clangPrefix+"TRIPLE", toolchain.ClangTriple())
|
||||
ctx.Strict(clangPrefix+"GLOBAL_CFLAGS", strings.Join([]string{
|
||||
toolchain.ClangCflags(),
|
||||
"${config.CommonClangGlobalCflags}",
|
||||
|
Reference in New Issue
Block a user