Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e168f15a authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Gerrit Code Review
Browse files

Merge "Read LLVM version from $LLVM_PREBUILTS_VERSION if set."

parents 4011ebb1 cbfbd648
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,8 +21,12 @@ import sys


ANDROID_BUILD_TOP = os.environ.get("ANDROID_BUILD_TOP", ".")
LLVM_PREBUILTS_VERSION = os.environ.get("LLVM_PREBUILTS_VERSION")

def get_clang_prebuilts_version(global_go):
  if LLVM_PREBUILTS_VERSION:
    return LLVM_PREBUILTS_VERSION

  # TODO(b/187231324): Get clang version from the json file once it is no longer
  # hard-coded in global.go
  if global_go is None: