From a26dc346dd825054260b3738ff465c0de1b00aa0 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Fri, 2 Jul 2021 09:11:37 -0700 Subject: [PATCH] [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 --- scripts/symbol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/symbol.py b/scripts/symbol.py index ffb266a2f..5ec4e483e 100755 --- a/scripts/symbol.py +++ b/scripts/symbol.py @@ -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