| ... | @@ -253,7 +253,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -253,7 +253,7 @@ pub fn build(b: *Builder) !void { |
| 253 | zig0.defineCMacro("ZIG_VERSION_PATCH", b.fmt("{d}", .{zig_version.patch})); | 253 | zig0.defineCMacro("ZIG_VERSION_PATCH", b.fmt("{d}", .{zig_version.patch})); |
| 254 | zig0.defineCMacro("ZIG_VERSION_STRING", b.fmt("\"{s}\"", .{version})); | 254 | zig0.defineCMacro("ZIG_VERSION_STRING", b.fmt("\"{s}\"", .{version})); |
| 255 | | 255 | |
| 256 | for ([_]*std.build.LibExeObjStep{ zig0, exe }) |artifact| { | 256 | for ([_]*std.build.LibExeObjStep{ zig0, exe, test_stage2 }) |artifact| { |
| 257 | artifact.addIncludePath("src"); | 257 | artifact.addIncludePath("src"); |
| 258 | artifact.addIncludePath("deps/SoftFloat-3e/source/include"); | 258 | artifact.addIncludePath("deps/SoftFloat-3e/source/include"); |
| 259 | artifact.addIncludePath("deps/SoftFloat-3e-prebuilt"); | 259 | artifact.addIncludePath("deps/SoftFloat-3e-prebuilt"); |
| ... | @@ -328,9 +328,11 @@ pub fn build(b: *Builder) !void { | ... | @@ -328,9 +328,11 @@ pub fn build(b: *Builder) !void { |
| 328 | } | 328 | } |
| 329 | | 329 | |
| 330 | try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx); | 330 | try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx); |
| | 331 | try addCmakeCfgOptionsToExe(b, cfg, test_stage2, use_zig_libcxx); |
| 331 | } else { | 332 | } else { |
| 332 | // Here we are -Denable-llvm but no cmake integration. | 333 | // Here we are -Denable-llvm but no cmake integration. |
| 333 | try addStaticLlvmOptionsToExe(exe); | 334 | try addStaticLlvmOptionsToExe(exe); |
| | 335 | try addStaticLlvmOptionsToExe(test_stage2); |
| 334 | } | 336 | } |
| 335 | } | 337 | } |
| 336 | | 338 | |