| ... | @@ -19,8 +19,7 @@ pub const simplified_logic = | ... | @@ -19,8 +19,7 @@ pub const simplified_logic = |
| 19 | builtin.zig_backend == .stage2_aarch64 or | 19 | builtin.zig_backend == .stage2_aarch64 or |
| 20 | builtin.zig_backend == .stage2_arm or | 20 | builtin.zig_backend == .stage2_arm or |
| 21 | builtin.zig_backend == .stage2_sparc64 or | 21 | builtin.zig_backend == .stage2_sparc64 or |
| 22 | builtin.cpu.arch == .spirv32 or | 22 | builtin.zig_backend == .stage2_spirv64; |
| 23 | builtin.cpu.arch == .spirv64; | | |
| 24 | | 23 | |
| 25 | comptime { | 24 | comptime { |
| 26 | // No matter what, we import the root file, so that any export, test, comptime | 25 | // No matter what, we import the root file, so that any export, test, comptime |
| ... | @@ -37,7 +36,7 @@ comptime { | ... | @@ -37,7 +36,7 @@ comptime { |
| 37 | if (!@hasDecl(root, "wWinMainCRTStartup") and !@hasDecl(root, "mainCRTStartup")) { | 36 | if (!@hasDecl(root, "wWinMainCRTStartup") and !@hasDecl(root, "mainCRTStartup")) { |
| 38 | @export(&wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); | 37 | @export(&wWinMainCRTStartup2, .{ .name = "wWinMainCRTStartup" }); |
| 39 | } | 38 | } |
| 40 | } else if (builtin.os.tag == .opencl) { | 39 | } else if (builtin.os.tag == .opencl or builtin.os.tag == .vulkan) { |
| 41 | if (@hasDecl(root, "main")) | 40 | if (@hasDecl(root, "main")) |
| 42 | @export(&spirvMain2, .{ .name = "main" }); | 41 | @export(&spirvMain2, .{ .name = "main" }); |
| 43 | } else { | 42 | } else { |