mirror of https://github.com/llvm/circt.git
[ESI] Extend instead of override CMAKE_CXX_FLAGS (#8551)
* [ESI] Extend instead of override CMAKE_CXX_FLAGS * regex purge --------- Co-authored-by: Morten Borup Petersen <mpetersen@microsoft.com>
This commit is contained in:
parent
82bd22bda3
commit
e070aed1f3
|
@ -162,7 +162,11 @@ set(ESIPythonRuntimeSources
|
|||
)
|
||||
|
||||
IF(MSVC)
|
||||
set(CMAKE_CXX_FLAGS "/EHa")
|
||||
# ESI runtime requires exceptions. Purge any exception-related flags from
|
||||
# CXX_FLAGS, and add /EHa.
|
||||
string(REGEX REPLACE "/EH[a-zA-Z-]*" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHa")
|
||||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS 1)
|
||||
ENDIF(MSVC)
|
||||
|
||||
|
|
Loading…
Reference in New Issue