[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:
Pirama Arumuga Nainar
2021-07-02 09:11:37 -07:00
parent 5b65b9117d
commit a26dc346dd

View File

@@ -38,7 +38,7 @@ def FindClangDir():
# We want the script to fail if get_clang_version.py exists but is unable
# to find the clang version.
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:
return None