[LLVM] Fix GetErrcMessages.cmake module for WoA
GetErrcMessages.cmake module makes use of cmake's try_run which by default builds its sources in debug mode unless configured with CMAKE_TRY_COMPILE_CONFIGURATION. Debug builds on Windows sometimes fail when appropraite DLLs are not included in path. Also on Windows on Arm machines debug builds sometimes fail to link the correct debug DLLs. To fix this I am setting CMAKE_TRY_COMPILE_CONFIGURATION to active build configuration of currently configured LLVM project. This makes sure we select same build type for try_run/try_compile cmake modules as currently configured LLVM project. Reviewed By: zero9178 Differential Revision: https://reviews.llvm.org/D133482
parent
2d60d7ba
Please register or sign in to comment