Merge "Expose Soong's default clang versions to Bazel"

This commit is contained in:
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux 2021-08-16 18:08:03 +00:00 committed by Gerrit Code Review
commit 37abc3c343

View file

@ -355,6 +355,9 @@ func init() {
exportedStringListVars.Set("CommonGlobalIncludes", commonGlobalIncludes)
pctx.PrefixedExistentPathsForSourcesVariable("CommonGlobalIncludes", "-I", commonGlobalIncludes)
exportStringStaticVariable("CLANG_DEFAULT_VERSION", ClangDefaultVersion)
exportStringStaticVariable("CLANG_DEFAULT_SHORT_VERSION", ClangDefaultShortVersion)
pctx.SourcePathVariable("ClangDefaultBase", ClangDefaultBase)
pctx.VariableFunc("ClangBase", func(ctx android.PackageVarContext) string {
if override := ctx.Config().Getenv("LLVM_PREBUILTS_BASE"); override != "" {