From 23567cdd984322c7428d43c8cbf8ecd40a2b7ec6 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 17 Feb 2022 20:46:40 -0700 Subject: [PATCH] build.zig: fix test-stage2 regression with -Denable-llvm Regressed in cc9eb9e90fec961a74e90e1ab3d66a7b8ec14f47 due to a merge conflict. --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 1ee8a21bda..fc8e6dced1 100644 --- a/build.zig +++ b/build.zig @@ -253,7 +253,7 @@ pub fn build(b: *Builder) !void { zig0.defineCMacro("ZIG_VERSION_PATCH", b.fmt("{d}", .{zig_version.patch})); zig0.defineCMacro("ZIG_VERSION_STRING", b.fmt("\"{s}\"", .{version})); - for ([_]*std.build.LibExeObjStep{ zig0, exe }) |artifact| { + for ([_]*std.build.LibExeObjStep{ zig0, exe, test_stage2 }) |artifact| { artifact.addIncludePath("src"); artifact.addIncludePath("deps/SoftFloat-3e/source/include"); artifact.addIncludePath("deps/SoftFloat-3e-prebuilt"); @@ -328,9 +328,11 @@ pub fn build(b: *Builder) !void { } try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx); + try addCmakeCfgOptionsToExe(b, cfg, test_stage2, use_zig_libcxx); } else { // Here we are -Denable-llvm but no cmake integration. try addStaticLlvmOptionsToExe(exe); + try addStaticLlvmOptionsToExe(test_stage2); } }