From ac22ca4d97c5f8c8dedeeae3a055b3f8244cfbc7 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 28 Oct 2022 10:08:40 -0700 Subject: [PATCH] gpu-dawn: fix build instructions `-Ddawn-from-source=true` was removed as an option when building gpu-dawn in specific, since after all the project exists only to build Dawn from source. Other projects (like `mach/gpu`, the WebGPU Zig bindings) of course still continue to respect `-Ddawn-from-source=true`. Originally reported as an issue [in Matrix](https://matrix.to/#/!bIJeTLtOHucXQpqIcH:matrix.org/$IiqVW7rz75Du15sNGFGQiDWGqC-MboJUBv8w0XWb828?via=matrix.org&via=mozilla.org&via=pythons.space). Signed-off-by: Stephen Gutekanst --- libs/gpu-dawn/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gpu-dawn/README.md b/libs/gpu-dawn/README.md index e5cb728a..bc4a547b 100644 --- a/libs/gpu-dawn/README.md +++ b/libs/gpu-dawn/README.md @@ -22,7 +22,7 @@ cd mach-gpu-dawn rm -rf libs/mach-glfw git clone https://github.com/hexops/mach-glfw libs/mach-glfw -zig build -Ddawn-from-source=true +zig build ``` (Please make sure to use Zig nightly, e.g. v0.10, not v0.9, which you can get a binary release of at the very top of this page: https://ziglang.org/download/) @@ -47,7 +47,7 @@ The following platforms are not yet supported, but we hope to support soon: ## Binary releases -Dawn (specifically all the shader compilers, and the DirectXShaderCompiler) is a large C++ codebase and takes 5-10 minutes to build on a modern laptop, you just need to specify `-Ddawn-from-source=true` and wait. Since waiting is no fun, we also have binary releases produced by our GitHub actions: +Dawn (specifically all the shader compilers, and the DirectXShaderCompiler) is a large C++ codebase and takes 5-10 minutes to build on a modern laptop. Since waiting is no fun, we also have binary releases produced by our GitHub actions: **[View binary releases](https://github.com/hexops/mach-gpu-dawn/releases/latest)**