Commit 1e192486d07ca771674c99dcba9ffa9203145ec6

Authored by Jay Berkenbilt
1 parent d740c6cc

Use Release for mingw builds for smaller packages

Showing 1 changed file with 1 additions and 2 deletions
build-scripts/build-windows
@@ -6,6 +6,7 @@ tool=$2 @@ -6,6 +6,7 @@ tool=$2
6 6
7 declare -a cmake_xargs 7 declare -a cmake_xargs
8 declare -a ctest_xargs 8 declare -a ctest_xargs
  9 +config=Release
9 if [[ $tool == mingw ]]; then 10 if [[ $tool == mingw ]]; then
10 pacman -Sy --noconfirm make base-devel tar zip unzip 11 pacman -Sy --noconfirm make base-devel tar zip unzip
11 if [ ! -x /c/msys64/mingw$wordsize/bin/g++.exe ]; then 12 if [ ! -x /c/msys64/mingw$wordsize/bin/g++.exe ]; then
@@ -16,12 +17,10 @@ if [[ $tool == mingw ]]; then @@ -16,12 +17,10 @@ if [[ $tool == mingw ]]; then
16 fi 17 fi
17 fi 18 fi
18 PATH="/c/msys64/mingw$wordsize/bin:$PATH" 19 PATH="/c/msys64/mingw$wordsize/bin:$PATH"
19 - config=RelWithDebInfo  
20 cmake_xargs=(-- -k) 20 cmake_xargs=(-- -k)
21 g++ -v 21 g++ -v
22 elif [[ $tool == msvc ]]; then 22 elif [[ $tool == msvc ]]; then
23 cl 23 cl
24 - config=Release  
25 cmake_xargs=(--config $config) 24 cmake_xargs=(--config $config)
26 ctest_xargs=(-C $config) 25 ctest_xargs=(-C $config)
27 fi 26 fi