From f42ebd1b0a1394129e42847a694e2e55d17d4ca9 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Mon, 2 Nov 2020 18:56:08 +0100 Subject: Update src/Compilation.zig Co-authored-by: Andrew Kelley --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 55b1c05104..8c7ec97b2d 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -472,7 +472,7 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { break :blk false; }; - const syslibroot = if (use_lld and options.is_native_os and options.target.isDarwin()) blk: { + const syslibroot = if (build_options.have_llvm and use_lld and options.is_native_os and options.target.isDarwin()) blk: { const syslibroot_path = try std.zig.system.getSDKPath(arena); break :blk syslibroot_path; } else null; -- cgit v1.2.3