From 3c773d71d3ea43b674717763cef238b054c95675 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 9 May 2026 20:08:28 +0200 Subject: [PATCH] If it's an EMSCRIPTEN build, we're not done --- nix/build-all.py | 4 ++++ .../install-metadata-for-emscripten.patch | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 nix/patches/manifold/install-metadata-for-emscripten.patch diff --git a/nix/build-all.py b/nix/build-all.py index 30a9d8390f..3880a68e1a 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -951,6 +951,9 @@ elif "occ" in targets: if "manifold" in targets: dependency_name = f"manifold-{MANIFOLD_VERSION}" + patches = [] + if WASM: + patches.append("./patches/manifold/install-metadata-for-emscripten.patch") build_dependency( name=dependency_name, mode="cmake", @@ -970,6 +973,7 @@ if "manifold" in targets: download_name="manifold", download_tool=download_tool_git, revision=f"v{MANIFOLD_VERSION}", + patch=patches, ) if "libxml2" in targets: diff --git a/nix/patches/manifold/install-metadata-for-emscripten.patch b/nix/patches/manifold/install-metadata-for-emscripten.patch new file mode 100644 index 0000000000..07324267bf --- /dev/null +++ b/nix/patches/manifold/install-metadata-for-emscripten.patch @@ -0,0 +1,17 @@ +# This file was generated with the assistance of an AI coding tool. +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 42e403b..764562f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -249,11 +249,6 @@ set_source_files_properties( + PROPERTIES GENERATED TRUE + ) + +-# If it's an EMSCRIPTEN build, we're done +-if(EMSCRIPTEN) +- return() +-endif() +- + # CMake exports + configure_file( + cmake/manifoldConfig.cmake.in