Skip to content

Commit

Permalink
build script using release
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Sep 20, 2023
1 parent c65a5aa commit bae1544
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion script/linux_build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion script/macos_build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 4 additions & 5 deletions script/windows_build.ps1
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ..

0 comments on commit bae1544

Please sign in to comment.