mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 16:24:51 +00:00
LibCInstallation: no longer depends on LLVM
Reverts 4fa8cc736966544da381c90a6111158179fc550b. This check was added because it depended on C++ code, but after 77b96231a6bc195cc482d05599e8c20ee01645a6, this functionality no longer depends on C++ code.
This commit is contained in:
parent
e85a46cb84
commit
22662773b2
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user