Skip to content

Commit 412ca22

Browse files
committed
Error when -rcincludes=msvc and MSVC can't be detected on the host
1 parent 82f12a0 commit 412ca22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compilation.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -5191,7 +5191,7 @@ fn detectWin32ResourceIncludeDirs(arena: Allocator, options: InitOptions) !LibCD
51915191
if (builtin.target.os.tag != .windows) {
51925192
switch (includes) {
51935193
// MSVC can't be found when the host isn't Windows, so short-circuit.
5194-
.msvc => includes = .none,
5194+
.msvc => return error.WindowsSdkNotFound,
51955195
// Skip straight to gnu since we won't be able to detect MSVC on non-Windows hosts.
51965196
.any => includes = .gnu,
51975197
.none, .gnu => {},

0 commit comments

Comments
 (0)