Skip to content

Commit d89904e

Browse files
committed
Command modify
1 parent 5a45797 commit d89904e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

command/build_release_linux_share.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11

2-
BUILD_DIR=build/linux
2+
uname_s=$(uname -s)
3+
dir_name="linux"
4+
if [ "$uname_s" == "Darwin" ];then
5+
echo "MacOS"
6+
# shellcheck disable=SC2034
7+
dir_name="darwin"
8+
fi
9+
10+
BUILD_DIR=build/${dir_name}
311
mkdir -p ${BUILD_DIR}
12+
# shellcheck disable=SC2164
413
cd ${BUILD_DIR}
514

615
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARE=ON -DBUILD_SAMPLES=OFF -DBUILD_TEST=OFF ../..

command/docker_build_linux_x86_shared_lib.sh

-1
This file was deleted.

0 commit comments

Comments
 (0)