From bae15446bd1c346b4dc7f3e42515a97b54e0296e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=81=E8=A1=8C?= Date: Wed, 20 Sep 2023 16:43:34 +0800 Subject: [PATCH] build script using release --- script/linux_build.sh | 2 +- script/macos_build.sh | 2 +- script/windows_build.ps1 | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/script/linux_build.sh b/script/linux_build.sh index 79c87de1..369f56f8 100755 --- a/script/linux_build.sh +++ b/script/linux_build.sh @@ -1,5 +1,5 @@ # 1. clone MNN -git clone https://github.com/alibaba/MNN.git -b 2.6.3 --depth=1 +git clone https://github.com/alibaba/MNN.git -b 2.7.1 --depth=1 # 2. build MNN cd MNN diff --git a/script/macos_build.sh b/script/macos_build.sh index c8564913..47b48d41 100755 --- a/script/macos_build.sh +++ b/script/macos_build.sh @@ -1,5 +1,5 @@ # 1. clone MNN -git clone https://github.com/alibaba/MNN.git -b 2.6.3 --depth=1 +git clone https://github.com/alibaba/MNN.git -b 2.7.1 --depth=1 # 2. build MNN cd MNN diff --git a/script/windows_build.ps1 b/script/windows_build.ps1 index e2ab65d2..3a6ab075 100644 --- a/script/windows_build.ps1 +++ b/script/windows_build.ps1 @@ -1,13 +1,12 @@ # 1. clone MNN -git clone https://github.com/alibaba/MNN.git -b 2.6.3 --depth=1 +git clone https://github.com/alibaba/MNN.git -b 2.7.1 --depth=1 # 2. build MNN cd MNN mkdir build cd build -# cmake -DMNN_LOW_MEMORY=ON .. -cmake .. -cmake --build . -j 4 +cmake -DMNN_LOW_MEMORY=ON -DMNN_WIN_RUNTIME_MT=ON .. +cmake --build . --config Release -j 4 cd ../.. # 3. copy headers and libs @@ -24,5 +23,5 @@ cp .\pthreads\Pre-built.2\include\*.h .\include\ mkdir build cd build cmake .. -cmake --build . -j 4 +cmake --build . --config Release -j 4 cd .. \ No newline at end of file