From 6940a05f2b7626443f2c38af61ddd8663bda7b50 Mon Sep 17 00:00:00 2001 From: myoualid Date: Sun, 28 Sep 2025 13:51:38 +0100 Subject: [PATCH] remove yacc dependency for wasm build --- nix/build-all.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index 8801ebaf5f..65c21455e0 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -356,7 +356,10 @@ print("Building:", *sorted(targets, key=lambda t: len(list(gather_dependencies(t # Check that required tools are in PATH yacc = "yacc" # Used during swig building process, installed with `bison` on Debian / `byacc` on Red Hat. missing_commands: "list[str]" = [] -for cmd in [git, bunzip2, tar, cc, cplusplus, autoconf, automake, make, "patch", "cmake", yacc, xz]: +required_commands = [git, bunzip2, tar, cc, cplusplus, autoconf, automake, make, "patch", "cmake", yacc, xz] +if "wasm" in flags: + required_commands.remove(yacc) # yacc not needed for wasm builds +for cmd in required_commands: if which(cmd) is None: missing_commands.append(cmd)