File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ function(add_mlir_aggregate name)
584584 # TODO: Should be transitive.
585585 set_target_properties (${name} PROPERTIES
586586 MLIR_AGGREGATE_EXCLUDE_LIBS "${_embed_libs} " )
587- if (MSVC )
587+ if (WIN32 )
588588 set_property (TARGET ${name} PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS ON )
589589 endif ()
590590
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ function(add_mlir_python_common_capi_library name)
512512 )
513513 add_dependencies (${name} ${_header_sources_target} )
514514
515- if (MSVC )
515+ if (WIN32 )
516516 set_property (TARGET ${name} PROPERTY WINDOWS_EXPORT_ALL_SYMBOLS ON )
517517 endif ()
518518 set_target_properties (${name} PROPERTIES
@@ -680,7 +680,7 @@ function(add_mlir_python_extension libname extname)
680680 set (eh_rtti_enable)
681681 if (MSVC )
682682 set (eh_rtti_enable /EHsc /GR)
683- elseif (LLVM_COMPILER_IS_GCC_COMPATIBLE)
683+ elseif (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL )
684684 set (eh_rtti_enable -frtti -fexceptions)
685685 endif ()
686686 target_compile_options (${libname} PRIVATE ${eh_rtti_enable} )
You can’t perform that action at this time.
0 commit comments