explicity linked ntdll on mingw-w64

master
emekoi 2019-10-22 19:34:34 -05:00 committed by Andrew Kelley
parent f65b1d4680
commit cb8dacabd8
1 changed files with 2 additions and 0 deletions

View File

@ -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)