| ... | @@ -480,7 +480,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { | ... | @@ -480,7 +480,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { |
| 480 | const darwin_options: DarwinOptions = if (build_options.have_llvm and comptime std.Target.current.isDarwin()) outer: { | 480 | const darwin_options: DarwinOptions = if (build_options.have_llvm and comptime std.Target.current.isDarwin()) outer: { |
| 481 | const opts: DarwinOptions = if (use_lld and options.is_native_os and options.target.isDarwin()) inner: { | 481 | const opts: DarwinOptions = if (use_lld and options.is_native_os and options.target.isDarwin()) inner: { |
| 482 | const syslibroot = try std.zig.system.getSDKPath(arena); | 482 | const syslibroot = try std.zig.system.getSDKPath(arena); |
| 483 | const system_linker_hack = if (std.os.getenv("ZIG_SYSTEM_LINKER_HACK")) |_| true else false; | 483 | const system_linker_hack = std.os.getenv("ZIG_SYSTEM_LINKER_HACK") != null; |
| 484 | break :inner .{ | 484 | break :inner .{ |
| 485 | .syslibroot = syslibroot, | 485 | .syslibroot = syslibroot, |
| 486 | .system_linker_hack = system_linker_hack, | 486 | .system_linker_hack = system_linker_hack, |