diff --git a/tools/build/mk/get_llvm_compiler_path.sh b/tools/build/mk/get_llvm_compiler_path.sh index 1fa12631a91d1116c1d9e3b40f02e1cdf9dccd8c..13e489120c7540c70152711af2761fbc1c5dacf7 100755 --- a/tools/build/mk/get_llvm_compiler_path.sh +++ b/tools/build/mk/get_llvm_compiler_path.sh @@ -30,6 +30,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. set -e +liteos_top_dir=$2 function get_compiler_path() { local system=$(uname -s) @@ -40,7 +41,7 @@ function get_compiler_path() clang_install_path=$(dirname ${clang_install_path})/../ echo "${clang_install_path}" else - echo "WARNING:Set llvm/bin path in PATH." + echo "$liteos_top_dir/../../prebuilts/clang/harmonyos/linux-x86_64/llvm" fi else if [ -n "${clang_install_path}" ] ; then