std.Build.RunStep: fix control flow with qemu+glibc logic

This commit is contained in:
Andrew Kelley 2023-03-19 16:26:19 -07:00
parent 5df31f3ef3
commit 626a75bbc2

View File

@ -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;