diff --git a/build/envsetup.sh b/build/envsetup.sh index 36ef556b1d078b16b19115e4b424cd670d3801c6..190ebf5fa2050bacf06f556203a32979aaaa5038 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -22,7 +22,7 @@ function print_usage { if [ "$#" -lt 2 ]; then print_usage -# return + # return fi curdir=$(pwd) @@ -71,13 +71,13 @@ fi if [ $1 = "arm" ]; then PLATFORM=aarch64 USEOJ=0 -elif [ $1 = "riscv" ]; then + elif [ $1 = "riscv" ]; then PLATFORM=riscv64 USEOJ=0 -elif [ $1 = "engine" ]; then + elif [ $1 = "engine" ]; then PLATFORM=ark USEOJ=1 -elif [ $1 = "ark" ]; then + elif [ $1 = "ark" ]; then PLATFORM=ark USEOJ=1 else @@ -88,7 +88,7 @@ fi if [ "$2" = "release" ]; then TYPE=release DEBUG=0 -elif [ "$2" = "debug" ]; then + elif [ "$2" = "debug" ]; then TYPE=debug DEBUG=1 else @@ -114,5 +114,6 @@ if [ ! -f $MAPLE_ROOT/tools/qemu/usr/bin/qemu-aarch64 ] && [ "$OLD_OS" = "0" ]; echo " " fi - - +if [[ "$OLD_OS" = "0" ]]; then + export LD_LIBRARY_PATH=${MAPLE_ROOT}/tools/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-18.04/lib/ +fi