Commit 3b40b68210

LemonBoy <thatlemon@gmail.com>
2020-10-03 20:47:06
stage2: Build libunwind for non-msvc Windows targets
Closes #6497
1 parent 4396373
Changed files (1)
src/target.zig
@@ -130,7 +130,6 @@ pub fn osRequiresLibC(target: std.Target) bool {
 
 pub fn libcNeedsLibUnwind(target: std.Target) bool {
     return switch (target.os.tag) {
-        .windows,
         .macosx,
         .ios,
         .watchos,
@@ -138,6 +137,7 @@ pub fn libcNeedsLibUnwind(target: std.Target) bool {
         .freestanding,
         => false,
 
+        .windows => target.abi != .msvc,
         else => true,
     };
 }