LibCInstallation: no longer depends on LLVM
Reverts4fa8cc7369. This check was added because it depended on C++ code, but after77b96231a6, this functionality no longer depends on C++ code.
This commit is contained in:
@@ -3,7 +3,6 @@ const builtin = @import("builtin");
|
||||
const Target = std.Target;
|
||||
const fs = std.fs;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const build_options = @import("build_options");
|
||||
|
||||
const is_darwin = builtin.target.isDarwin();
|
||||
const is_windows = builtin.target.os.tag == .windows;
|
||||
@@ -184,9 +183,6 @@ pub const LibCInstallation = struct {
|
||||
if (is_darwin) {
|
||||
@panic("Darwin is handled separately via std.zig.system.darwin module");
|
||||
} else if (is_windows) {
|
||||
if (!build_options.have_llvm)
|
||||
return error.WindowsSdkNotFound;
|
||||
|
||||
var sdk: ZigWindowsSDK = ZigWindowsSDK.find(args.allocator) catch |err| switch (err) {
|
||||
error.NotFound => return error.WindowsSdkNotFound,
|
||||
error.PathTooLong => return error.WindowsSdkNotFound,
|
||||
|
||||
Reference in New Issue
Block a user