building DLLs on Windows works better

This commit is contained in:
Andrew Kelley
2019-02-25 13:34:25 -05:00
parent e76ce2c1d0
commit 525c2eaf5d
9 changed files with 66 additions and 9 deletions

View File

@@ -1049,3 +1049,9 @@ bool target_requires_libc(const ZigTarget *target) {
// since this is the stable syscall interface.
return (target_is_darwin(target) || target->os == OsFreeBSD || target->os == OsNetBSD);
}
bool target_supports_fpic(const ZigTarget *target) {
// This is not whether the target supports Position Independent Code, but whether the -fPIC
// C compiler argument is valid.
return target->os != OsWindows;
}