From 4cc63147888f205c1e830fdcb727fff09934b470 Mon Sep 17 00:00:00 2001 From: Zongfang Lin Date: Thu, 4 Nov 2021 21:37:41 -0700 Subject: [PATCH] add LD_LIBRARY_PATH for Ubuntu 20 --- build/envsetup.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/build/envsetup.sh b/build/envsetup.sh index 36ef556b1d..190ebf5fa2 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 -- Gitee