authorgravatar for emekankurumeh@outlook.comemekoi <emekankurumeh@outlook.com> 2019-04-20 21:47:00-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-04-21 14:13:48-04:00
log0f8fc3b924ac0d971a800bc6e3b6c931612e06a6
tree7804b51d2bf8ca28cf9bd594f20638ca69ced50b
parent211f0a2226db7c53cfa1581c5572a6100c3e17f6

fixed stack protector issues


1 files changed, 4 insertions(+), 4 deletions(-)

CMakeLists.txt+4-4
......@@ -50,10 +50,6 @@ option(ZIG_FORCE_EXTERNAL_LLD "If your system has the LLD patches use it instead
5050find_package(llvm)
5151find_package(clang)
5252
53if(MINGW)
54 find_package(z3)
55endif()
56
5753if(APPLE AND ZIG_STATIC)
5854 list(REMOVE_ITEM LLVM_LIBRARIES "-lz")
5955 find_library(ZLIB NAMES z zlib libz)
......@@ -6668,6 +6664,7 @@ if(NOT MSVC)
66686664endif()
66696665
66706666if(MINGW)
6667 find_library(Z3_LIBRARIES NAMES z3 z3.dll)
66716668 target_link_libraries(compiler LINK_PUBLIC ${Z3_LIBRARIES})
66726669endif()
66736670
......@@ -6707,6 +6704,9 @@ add_custom_command(
67076704)
67086705add_custom_target(userland_target DEPENDS "${LIBUSERLAND}")
67096706add_executable(zig "${ZIG_MAIN_SRC}")
6707if(MINGW)
6708 set(EXE_LDFLAGS "${EXE_LDFLAGS} -fstack-protector")
6709endif()
67106710set_target_properties(zig PROPERTIES
67116711 COMPILE_FLAGS ${EXE_CFLAGS}
67126712 LINK_FLAGS ${EXE_LDFLAGS}