summaryrefslogtreecommitdiff
path: root/src/binaryen-js.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-01-13 17:45:01 -0800
committerGitHub <noreply@github.com>2017-01-13 17:45:01 -0800
commiteafc06f8cf2b815d151b67c67086f33b3dae6b8b (patch)
treed6b99f10cffe0bafd574873d0e1c28b3073b4018 /src/binaryen-js.cpp
parent370029bf981bee0c88dfdc7b9f4739959a1b8c05 (diff)
downloadbinaryen-eafc06f8cf2b815d151b67c67086f33b3dae6b8b.tar.gz
binaryen-eafc06f8cf2b815d151b67c67086f33b3dae6b8b.tar.bz2
binaryen-eafc06f8cf2b815d151b67c67086f33b3dae6b8b.zip
Allow release builds with asserts on windows (#882)
The posix build enables assertions on release builds with ADD_NONDEBUG_COMPILE_FLAG("-UNDEBUG") but the windows build does not. This PR adds /UNDEBUG to the release build flags but has the additional complication that /DNDEBUG is added to CFLAGS by CMake by default, and MSVC will warn about having /UFOO after /DFOO on the command line. So we scrub DNDEBUG from CFLAGS as well. Additional windows build cleanups: Disable conversion/truncation warnings Canonicalize flag style to use slashes everywhere instead of mixing MSVC uses /Od (not /O0) to disable optimization
Diffstat (limited to 'src/binaryen-js.cpp')
0 files changed, 0 insertions, 0 deletions