diff --git a/build/scripts/get_compiler_path.sh b/build/scripts/get_compiler_path.sh index 6858c9e787c1aa67ea6e81f5f09a682a019c953e..b1afe3bdcd47a36aa329cb9c1429d8bd9bfd2f76 100755 --- a/build/scripts/get_compiler_path.sh +++ b/build/scripts/get_compiler_path.sh @@ -10,7 +10,7 @@ function get_compiler_path() local user_gcc="${TEMP}" local gcc_install_path=$(which "${user_gcc}") if [ "$system" = "Linux" ] ; then - gcc_install_path=${gcc_install_path/\/bin\/"${user_gcc}"/} + gcc_install_path=`dirname ${gcc_install_path}`/../ else gcc_install_path=${gcc_install_path/\/bin\/"${user_gcc}".exe/} fi