Merge changes I18acac41,Ib8baefed,I38e78bb9 am: 972a160062 am: 4da8e311d8 am: bf4d093365

am: b476da50f0

Change-Id: I8989acdc6b44b93b34007876f4827e35085a5b17
This commit is contained in:
Colin Cross
2017-08-16 00:54:43 +00:00
committed by android-build-merger
6 changed files with 144 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ package config
import (
"fmt"
"runtime"
"strings"
"android/soong/android"
@@ -149,6 +150,11 @@ func init() {
return ClangDefaultShortVersion, nil
})
pctx.StaticVariable("ClangAsanLibDir", "${ClangPath}/lib64/clang/${ClangShortVersion}/lib/linux")
if runtime.GOOS == "darwin" {
pctx.StaticVariable("LLVMGoldPlugin", "${ClangPath}/lib64/LLVMgold.dylib")
} else {
pctx.StaticVariable("LLVMGoldPlugin", "${ClangPath}/lib64/LLVMgold.so")
}
// These are tied to the version of LLVM directly in external/llvm, so they might trail the host prebuilts
// being used for the rest of the build process.