Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Fix debug build of AOT cross compiler (#50418)
For mono AOT cross compiler we use llvm libraries from `runtime.win-x64.microsoft.netcore.runtime.mono.llvm.sdk` package. These are built in Release configuration. On windows we get linker errors when mixing them with obj files compiled with debug flags. To avoid that, build the AOT cross compiler always as in Release configuration. Example of the errors: LLVMSupport.lib(Unicode.cpp.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in monosgen-2.0.lib(mini-llvm-cpp.cpp.obj) LLVMSupport.lib(Unicode.cpp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in monosgen-2.0.lib(mini-llvm-cpp.cpp.obj)
- Loading branch information