From c60043124421a21da09a7ed021ac8c23ccf78810 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 21 Apr 2022 03:48:33 -0700 Subject: [PATCH] gpu-dawn: clarify how to build as separate repository Fixes hexops/mach#203 Signed-off-by: Stephen Gutekanst --- gpu-dawn/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gpu-dawn/README.md b/gpu-dawn/README.md index 829ff3f1..f4316b82 100644 --- a/gpu-dawn/README.md +++ b/gpu-dawn/README.md @@ -13,14 +13,20 @@ This repository is a separate copy of the same library in the [main Mach reposit ## Building from source -Building Dawn from source using this method is as simple as: +Building Dawn from source using this method is simple: ```sh git clone https://github.com/hexops/mach-gpu-dawn 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 ``` +(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/) + This will take ~10 minutes to finish (see the 'binary releases' section below.) You can add the following options: | Option | Description |