| ... | @@ -3,7 +3,6 @@ const builtin = @import("builtin"); | ... | @@ -3,7 +3,6 @@ const builtin = @import("builtin"); |
| 3 | const Target = std.Target; | 3 | const Target = std.Target; |
| 4 | const fs = std.fs; | 4 | const fs = std.fs; |
| 5 | const Allocator = std.mem.Allocator; | 5 | const Allocator = std.mem.Allocator; |
| 6 | const build_options = @import("build_options"); | | |
| 7 | | 6 | |
| 8 | const is_darwin = builtin.target.isDarwin(); | 7 | const is_darwin = builtin.target.isDarwin(); |
| 9 | const is_windows = builtin.target.os.tag == .windows; | 8 | const is_windows = builtin.target.os.tag == .windows; |
| ... | @@ -184,9 +183,6 @@ pub const LibCInstallation = struct { | ... | @@ -184,9 +183,6 @@ pub const LibCInstallation = struct { |
| 184 | if (is_darwin) { | 183 | if (is_darwin) { |
| 185 | @panic("Darwin is handled separately via std.zig.system.darwin module"); | 184 | @panic("Darwin is handled separately via std.zig.system.darwin module"); |
| 186 | } else if (is_windows) { | 185 | } else if (is_windows) { |
| 187 | if (!build_options.have_llvm) | | |
| 188 | return error.WindowsSdkNotFound; | | |
| 189 | | | |
| 190 | var sdk: ZigWindowsSDK = ZigWindowsSDK.find(args.allocator) catch |err| switch (err) { | 186 | var sdk: ZigWindowsSDK = ZigWindowsSDK.find(args.allocator) catch |err| switch (err) { |
| 191 | error.NotFound => return error.WindowsSdkNotFound, | 187 | error.NotFound => return error.WindowsSdkNotFound, |
| 192 | error.PathTooLong => return error.WindowsSdkNotFound, | 188 | error.PathTooLong => return error.WindowsSdkNotFound, |