Skip to content

Commit

Permalink
MSVC build: Support disabling debug printf
Browse files Browse the repository at this point in the history
#183 revealed that debug printf is enabled when building with debug symbols
Let's try controling this better
  • Loading branch information
pal1000 committed May 21, 2024
1 parent 1e48a36 commit 9cefdfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildscript/modules/mesa3d.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@

@set mesadbgbld=n
@set mesadbgoptim=n
@aet nodebugprintf=n
@if /I "%useninja%"=="y" IF %toolchain%==msvc set /p mesadbgbld=Debug friendly binaries (require a lot of RAM) (y/n):
@IF NOT %toolchain%==msvc set /p mesadbgbld=Debug friendly binaries (y/n):
@if /I "%useninja%"=="y" echo.
Expand All @@ -227,6 +228,9 @@
@if /I "%mesadbgbld%"=="y" if /I NOT "%mesadbgoptim%"=="y" set buildconf=%buildconf% --buildtype=debug
@if /I "%mesadbgoptim%"=="y" IF NOT %toolchain%==msvc set buildconf=%buildconf% --buildtype=debugoptimized
@if /I "%mesadbgoptim%"=="y" IF %toolchain%==msvc set buildconf=%buildconf% -Ddebug=true -Doptimization=3
@if /I "%mesadbgoptim%"=="y" IF %toolchain%==msvc set /p nodebugprintf=Disable debug printf (y/n):
@if /I "%mesadbgoptim%"=="y" IF %toolchain%==msvc echo.
@if /I "%nodebugprintf%"=="y" set buildconf=%buildconf% --buildtype=release

@set mesaenableasserts=n
@set /p mesaenableasserts=Enable asserts (y/n):
Expand Down
2 changes: 2 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### Build script
- MSVC build: Support disabling debug printf.
# 24.0.7
- Updated Mesa3D to [24.0.7](https://gitlab.freedesktop.org/mesa/mesa/-/blob/24.0/docs/relnotes/24.0.7.rst?ref_type=heads&plain=0).
### Build script
Expand Down

0 comments on commit 9cefdfc

Please sign in to comment.