[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
diff --git a/scripts/symbol.py b/scripts/symbol.py
index ffb266a..5ec4e48 100755
--- a/scripts/symbol.py
+++ b/scripts/symbol.py
@@ -38,7 +38,7 @@
# 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