From 2de83359ba50736fb6fd8dac9052c43a9740c5bc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 22 Jul 2024 22:55:41 -0400 Subject: [PATCH] build-web-examples: Fix CMake dir. --- build-scripts/build-web-examples.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/build-web-examples.pl b/build-scripts/build-web-examples.pl index e7dca38c4..c7776bd6b 100755 --- a/build-scripts/build-web-examples.pl +++ b/build-scripts/build-web-examples.pl @@ -56,7 +56,7 @@ sub build_latest { if (do_system("EMSDK_QUIET=1 source '$emsdk_dir/emsdk_env.sh' && cd '$compile_dir' && ninja") != 0) { # Build failed? Try nuking the build dir and running CMake from scratch. print("\n\nBuilding latest version of $project FROM SCRATCH ...\n"); - if (do_system("EMSDK_QUIET=1 source '$emsdk_dir/emsdk_env.sh' && rm -rf '$compile_dir' && mkdir '$compile_dir' && cd '$compile_dir' && emcmake cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel .. && ninja") != 0) { + if (do_system("EMSDK_QUIET=1 source '$emsdk_dir/emsdk_env.sh' && rm -rf '$compile_dir' && mkdir '$compile_dir' && cd '$compile_dir' && emcmake cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel '$examples_dir/..' && ninja") != 0) { die("Failed to build latest version of $project!\n"); # oh well. } }