diff options
author | Sven Gothel <[email protected]> | 2020-09-30 11:13:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-09-30 11:13:05 +0200 |
commit | 2562bc4c0c19a293abf8cf0ba6ffe1451dd239e1 (patch) | |
tree | a05c64c4b416e213ce1f61489f34e24ba8f1c16d /scripts | |
parent | bda1e0d415257544c94ebfff87af8424166dd316 (diff) |
scripts/build.sh: Add commented out CLANG_ARGS (documentation, convenience)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index e03b1eda..ada53905 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -27,8 +27,9 @@ buildit() { rm -rf build-$archabi mkdir -p build-$archabi cd build-$archabi - cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. - # cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. + # CLANG_ARGS="-DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++" + cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON .. + # cmake $CLANG_ARGS -DCMAKE_INSTALL_PREFIX=$rootdir/dist-$archabi -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON .. make -j $CPU_COUNT install test if [ $? -eq 0 ] ; then echo "BUILD SUCCESS $bname $archabi" |