aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authoremekoi <emekankurumeh@outlook.com>2019-10-22 19:34:34 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-10-22 20:42:51 -0400
commitcb8dacabd8826c8edde53d42df63a06891cbade7 (patch)
tree5cdaf1a00c610d9fd6fe3cf8ea7a47b3e736de06 /CMakeLists.txt
parentf65b1d46804bce716f16465b60c6daa2921e4519 (diff)
downloadzig-cb8dacabd8826c8edde53d42df63a06891cbade7.tar.gz
zig-cb8dacabd8826c8edde53d42df63a06891cbade7.zip
explicity linked ntdll on mingw-w64
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cd1ba9d3f8..132f9ff578 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -632,6 +632,8 @@ set_target_properties(zig PROPERTIES
target_link_libraries(zig compiler "${LIBUSERLAND}")
if(MSVC)
target_link_libraries(zig ntdll.lib)
+elseif(MINGW)
+ target_link_libraries(zig ntdll)
endif()
add_dependencies(zig zig_build_libuserland)
install(TARGETS zig DESTINATION bin)