mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: don't depend on windows SDK C++ code when unavailable
This commit is contained in:
parent
6e9396e32b
commit
4fa8cc7369
@ -46,3 +46,6 @@
|
||||
* there are a couple panic("TODO") in clang options parsing
|
||||
* std.testing needs improvement to support exposing directory path for its tmp dir (look for "bogus")
|
||||
* integrate target features into building assembly code
|
||||
* libc_installation.zig: make it look for msvc only if msvc abi is chosen
|
||||
* switch the default C ABI for windows to be mingw-w64
|
||||
* port windows_sdk.cpp to zig
|
||||
|
||||
@ -169,6 +169,8 @@ pub const LibCInstallation = struct {
|
||||
var self: LibCInstallation = .{};
|
||||
|
||||
if (is_windows) {
|
||||
if (!build_options.have_llvm)
|
||||
return error.WindowsSdkNotFound;
|
||||
var sdk: *ZigWindowsSDK = undefined;
|
||||
switch (zig_find_windows_sdk(&sdk)) {
|
||||
.None => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user