Update src/Compilation.zig

Co-authored-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
Jakub Konka 2020-11-02 18:56:08 +01:00 committed by GitHub
parent 7f5c96378d
commit f42ebd1b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;