Skip to content

Commit bdfb314

Browse files
emekoiandrewrk
authored andcommitted
fixed compilation on mingw-w64
1 parent 107e574 commit bdfb314

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8840,7 +8840,7 @@ set_target_properties(zig0 PROPERTIES
88408840
)
88418841
target_link_libraries(zig0 compiler)
88428842

8843-
if(WIN32)
8843+
if(MSVC)
88448844
set(LIBUSERLAND "${CMAKE_BINARY_DIR}/userland.lib")
88458845
else()
88468846
set(LIBUSERLAND "${CMAKE_BINARY_DIR}/libuserland.a")
@@ -8865,9 +8865,7 @@ add_custom_command(
88658865
)
88668866
add_custom_target(userland_target DEPENDS "${LIBUSERLAND}")
88678867
add_executable(zig "${ZIG_MAIN_SRC}")
8868-
if(MINGW)
8869-
set(EXE_LDFLAGS "${EXE_LDFLAGS} -fstack-protector")
8870-
endif()
8868+
88718869
set_target_properties(zig PROPERTIES
88728870
COMPILE_FLAGS ${EXE_CFLAGS}
88738871
LINK_FLAGS ${EXE_LDFLAGS}

0 commit comments

Comments
 (0)