[scripts] Adjust FindClangDir
soong/scripts/get_clang_version.py now prints the whole prebuilt dir (e.g. clang-r416183b1) instead of just the version number. Test: invoke FindClangDir from the interpreter Change-Id: I17363e6bc4a48fe6be345f87006baa4590371dc1
This commit is contained in:
@@ -38,7 +38,7 @@ def FindClangDir():
|
|||||||
# We want the script to fail if get_clang_version.py exists but is unable
|
# We want the script to fail if get_clang_version.py exists but is unable
|
||||||
# to find the clang version.
|
# to find the clang version.
|
||||||
version_output = subprocess.check_output(get_clang_version, text=True)
|
version_output = subprocess.check_output(get_clang_version, text=True)
|
||||||
return ANDROID_BUILD_TOP + "/prebuilts/clang/host/linux-x86/clang-" + version_output.strip()
|
return ANDROID_BUILD_TOP + "/prebuilts/clang/host/linux-x86/" + version_output.strip()
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user