Commit 626a75bbc2

Andrew Kelley <andrew@ziglang.org>
2023-03-20 00:26:19
std.Build.RunStep: fix control flow with qemu+glibc logic
1 parent 5df31f3
Changed files (1)
lib
std
lib/std/Build/RunStep.zig
@@ -594,7 +594,8 @@ fn runCommand(
                 .qemu => |bin_name| {
                     if (b.enable_qemu) {
                         const glibc_dir_arg = if (need_cross_glibc)
-                            b.glibc_runtimes_dir orelse return
+                            b.glibc_runtimes_dir orelse
+                                return failForeign(self, "--glibc-runtimes", argv[0], exe)
                         else
                             null;