We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c620836 commit c8b92f3Copy full SHA for c8b92f3
src/target.zig
@@ -60,7 +60,12 @@ pub fn picLevel(target: std.Target) u32 {
60
/// This is not whether the target supports Position Independent Code, but whether the -fPIC
61
/// C compiler argument is valid to Clang.
62
pub fn supports_fpic(target: std.Target) bool {
63
- return target.os.tag != .windows and target.os.tag != .uefi;
+ return switch (target.os.tag) {
64
+ .windows,
65
+ .uefi,
66
+ => target.abi == .gnu or target.abi == .cygnus,
67
+ else => true,
68
+ };
69
}
70
71
pub fn alwaysSingleThreaded(target: std.Target) bool {
0 commit comments