File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77CXX =clang++
88
99ORIGIN =$(shell pwd)
10- STATIC_DEPS: =$(ORIGIN ) /static-deps
11- STATIC_ROOT: =$(STATIC_DEPS ) /lib-x86-64
10+ STATIC_DEPS? =$(ORIGIN ) /static-deps/lib-x86-64
11+ STATIC_ROOT: =$(STATIC_DEPS )
1212INCLUDE =-I external/googletest/googletest \
1313 -I external/googletest/googletest/include \
1414 -I external/googletest/googlemock/include \
Original file line number Diff line number Diff line change 33shopt -s extglob
44
55ORIGIN=$PWD
6- STATIC_DEPS=$ORIGIN /static-deps/lib-x86-64/lib
6+
7+ ARCH=$( uname -m)
8+
9+ if [[ " $ARCH " == " x86_64" ]]; then
10+ STATIC_DEPS=$ORIGIN /static-deps/lib-x86-64
11+ elif [[ " $ARCH " == " arm64" || " $ARCH " == " aarch64" ]]; then
12+ STATIC_DEPS=$ORIGIN /static-deps/lib-aarch64
13+ else
14+ echo " Unsupported arch: $ARCH "
15+ exit 1
16+ fi
17+
718BUILD=testbuild
819
9- BAKDIR=$STATIC_DEPS /bak
20+ BAKDIR=$STATIC_DEPS /lib/ bak
1021mkdir -p $BAKDIR
11- mv -v $STATIC_DEPS /* c++* .so* $BAKDIR /
22+ mv -v $STATIC_DEPS /lib/ * c++* .so* $BAKDIR /
1223
1324export DDB_TEST_SUITES=${@ }
1425mkdir -p $BUILD
1526export LD_LIBRARY_PATH=$STATIC_DEPS
16- make V=1 -j --file=Tests.mk
27+ make V=1 -j --file=Tests.mk STATIC_DEPS= $STATIC_DEPS
1728code=$?
1829
19- mv -v $BAKDIR /* c++* .so* $STATIC_DEPS /
30+ mv -v $BAKDIR /* c++* .so* $STATIC_DEPS /lib
2031
2132exit $code
You can’t perform that action at this time.
0 commit comments