We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107e574 commit bdfb314Copy full SHA for bdfb314
CMakeLists.txt
@@ -8840,7 +8840,7 @@ set_target_properties(zig0 PROPERTIES
8840
)
8841
target_link_libraries(zig0 compiler)
8842
8843
-if(WIN32)
+if(MSVC)
8844
set(LIBUSERLAND "${CMAKE_BINARY_DIR}/userland.lib")
8845
else()
8846
set(LIBUSERLAND "${CMAKE_BINARY_DIR}/libuserland.a")
@@ -8865,9 +8865,7 @@ add_custom_command(
8865
8866
add_custom_target(userland_target DEPENDS "${LIBUSERLAND}")
8867
add_executable(zig "${ZIG_MAIN_SRC}")
8868
-if(MINGW)
8869
- set(EXE_LDFLAGS "${EXE_LDFLAGS} -fstack-protector")
8870
-endif()
+
8871
set_target_properties(zig PROPERTIES
8872
COMPILE_FLAGS ${EXE_CFLAGS}
8873
LINK_FLAGS ${EXE_LDFLAGS}
0 commit comments