Skip to content

Commit 2a5c211

Browse files
fix cmake for windows (-Wno-vla)
1 parent 323b5fc commit 2a5c211

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,10 @@ endif()
140140
string(REPLACE ";" "\;" _VER CPPINTEROP_VERSION)
141141
set_source_files_properties(CppInterOp.cpp PROPERTIES COMPILE_DEFINITIONS
142142
"LLVM_BINARY_DIR=\"${LLVM_BINARY_DIR}\";CPPINTEROP_VERSION=\"${_VAR}\""
143-
COMPILE_FLAGS "-Wno-vla"
144143
)
144+
145+
if(NOT WIN32)
146+
set_source_files_properties(CppInterOp.cpp PROPERTIES
147+
COMPILE_FLAGS "-Wno-vla"
148+
)
149+
endif()

0 commit comments

Comments
 (0)