From 4860240e4e13b105a89e7083444f218c5b857eea Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 27 Feb 2022 15:11:41 -0700 Subject: [PATCH] gpu-dawn: if binaries are unavailable, exit with error Signed-off-by: Stephen Gutekanst --- gpu-dawn/build.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpu-dawn/build.zig b/gpu-dawn/build.zig index 0f3bc2ef..5c58f4e7 100644 --- a/gpu-dawn/build.zig +++ b/gpu-dawn/build.zig @@ -218,8 +218,9 @@ pub fn linkFromBinary(b: *Builder, step: *std.build.LibExeObjStep, options: Opti else => false, }; if (!binaries_available) { - std.debug.print("\nnote: gpu-dawn binaries for {s} not available, building from source (may take 5-10 minutes.)\nPlease open an issue: https://github.com/hexops/mach/issues\n", .{zig_triple}); - return linkFromSource(b, step, options); + std.log.err("\nerror: gpu-dawn binaries for {s} not available. Please open an issue: https://github.com/hexops/mach/issues\n\n", .{zig_triple}); + std.log.err("Build from source (takes 5-10 minutes) using -Dfrom-source=true or via `.from_source = true` in Options", .{}); + std.process.exit(1); } ensureBinaryDownloaded(b.allocator, zig_triple, b.is_release, options.binary_version);