From 197311d7ddffb59e0d2a4ea3b74b7735ef1d4e65 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 7 Mar 2019 13:21:01 -0500 Subject: [PATCH] windows and uefi don't have dynamic linkers --- src/target.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/target.cpp b/src/target.cpp index b3150c5ab..526418445 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -1088,8 +1088,24 @@ const char *target_dynamic_linker(const ZigTarget *target) { case OsTvOS: case OsWatchOS: case OsMacOSX: + case OsUefi: return nullptr; + case OsWindows: + switch (target->abi) { + case ZigLLVM_GNU: + case ZigLLVM_GNUABIN32: + case ZigLLVM_GNUABI64: + case ZigLLVM_GNUEABI: + case ZigLLVM_GNUEABIHF: + case ZigLLVM_GNUX32: + case ZigLLVM_Cygnus: + zig_panic("TODO implement target_dynamic_linker for mingw/cygwin"); + default: + return nullptr; + } + zig_unreachable(); + case OsAnanas: case OsCloudABI: case OsDragonFly: @@ -1098,7 +1114,6 @@ const char *target_dynamic_linker(const ZigTarget *target) { case OsLv2: case OsOpenBSD: case OsSolaris: - case OsWindows: case OsHaiku: case OsMinix: case OsRTEMS: @@ -1114,7 +1129,6 @@ const char *target_dynamic_linker(const ZigTarget *target) { case OsContiki: case OsAMDPAL: case OsZen: - case OsUefi: zig_panic("TODO implement target_dynamic_linker for this OS"); } zig_unreachable();