|
468 | 468 | <MonoLibClang Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(EMSDK_PATH)/upstream/lib/libclang.so</MonoLibClang>
|
469 | 469 | <MonoLibClang Condition="$([MSBuild]::IsOSPlatform('Windows'))">$([MSBuild]::NormalizePath('$(EMSDK_PATH)', 'upstream', 'bin', 'libclang.dll'))</MonoLibClang>
|
470 | 470 | <PythonCmd Condition="'$(OS)' == 'Windows_NT'">call "$([MSBuild]::NormalizePath('$(EMSDK_PATH)', 'emsdk_env.bat'))" && python</PythonCmd>
|
| 471 | + <_ForceRelease Condition="$([MSBuild]::IsOSPlatform('Windows')) and '$(TargetArchitecture)' == 'wasm' and '$(Configuration)' == 'Debug'">true</_ForceRelease> |
471 | 472 | </PropertyGroup>
|
472 | 473 |
|
473 | 474 | <!-- Windows specific options -->
|
|
478 | 479 | <_MonoAOTCPPFLAGS Include="-DWIN32_LEAN_AND_MEAN" />
|
479 | 480 | <!--<_MonoAOTCPPFLAGS Include="-D_WINDOWS" />--> <!-- set in monow.vcxproj, not sure we really need it -->
|
480 | 481 | <_MonoAOTCPPFLAGS Condition="'$(Platform)' == 'x64' or '$(Platform)' == 'arm64'" Include="-DWIN64" />
|
481 |
| - <_MonoAOTCPPFLAGS Condition="'$(Configuration)' == 'Release'" Include="-DNDEBUG" /> |
482 |
| - <_MonoAOTCPPFLAGS Condition="'$(Configuration)' == 'Debug'" Include="-D_DEBUG" /> |
| 482 | + <_MonoAOTCPPFLAGS Condition="'$(Configuration)' == 'Release' or '$(_ForceRelease)' == 'true'" Include="-DNDEBUG" /> |
| 483 | + <_MonoAOTCPPFLAGS Condition="'$(Configuration)' == 'Debug' and '$(_ForceRelease)' != 'true'" Include="-D_DEBUG" /> |
483 | 484 | <!-- <_MonoAOTCPPFLAGS Include="-D__default_codegen__" /> --> <!-- doesn't seem to be used -->
|
484 | 485 | <_MonoAOTCPPFLAGS Include="-D_CRT_SECURE_NO_WARNINGS" />
|
485 | 486 | <_MonoAOTCPPFLAGS Include="-D_CRT_NONSTDC_NO_DEPRECATE" />
|
|
539 | 540 | <MonoAOTCMakeArgs Include="-DAOT_TARGET_TRIPLE=$(MonoAotAbi)"/>
|
540 | 541 | <MonoAOTCMakeArgs Condition="'$(_MonoUseNinja)' == 'true'" Include="-G Ninja"/>
|
541 | 542 | <MonoAOTCMakeArgs Include="-DCMAKE_INSTALL_PREFIX=$([MSBuild]::NormalizePath('$(MonoObjCrossDir)', 'out'))"/>
|
542 |
| - <MonoAOTCMakeArgs Include="-DCMAKE_BUILD_TYPE=$(Configuration)"/> |
| 543 | + <MonoAOTCMakeArgs Condition="'$(_ForceRelease)' != 'true'" Include="-DCMAKE_BUILD_TYPE=$(Configuration)"/> |
| 544 | + <MonoAOTCMakeArgs Condition="'$(_ForceRelease)' == 'true'" Include="-DCMAKE_BUILD_TYPE=Release"/> |
543 | 545 | <!-- FIXME: Disable more -->
|
544 | 546 | <MonoAOTCMakeArgs Include="-DENABLE_MINIMAL=" />
|
545 | 547 | <MonoAOTCMakeArgs Include="-DENABLE_ICALL_SYMBOL_MAP=1" />
|
|
0 commit comments