Windows builds include debug information by default ##build

* Use 'call configure.bat release' to make stripped builds
* The CI still builds in release mode
This commit is contained in:
pancake 2022-06-22 00:42:14 +02:00 committed by pancake
parent 740c5fef9f
commit d9aac6bc66
2 changed files with 6 additions and 2 deletions

View File

@ -301,7 +301,7 @@ jobs:
shell: cmd
run: |
REM preconfigure
call configure
call configure release
call make
- name: Test executable
# continue-on-error: true

View File

@ -11,6 +11,10 @@ if "%*" == "static" (
set MESON_FLAGS=%MESON_FLAGS% -Dstatic_runtime=true -Dblob=true -Denable_r2r=false -Denable_tests=false
)
if "%*" == "release" (
set MESON_FLAGS=%MESON_FLAGS% --buildtype=release
)
set PATH=%CD%\prefix\bin;%PATH%
set WORKS=0
if EXIST vs (
@ -30,7 +34,7 @@ set WORKS=0
if EXIST b (
meson b %MESON_FLAGS% --reconfigure && set WORKS=1
) else (
meson b %MESON_FLAGS% --buildtype=release && set WORKS=1
meson b %MESON_FLAGS% && set WORKS=1
)
if %WORKS% EQU 1 (