Back to Powder Tool V600Billion
SOURCE / PINNED RELEASE

Made of little things.

Powder Tool V600Billion

Release
142767edcab8…
Author-recorded commit
6d92971effd0…
License
LICENSE
Author’s source reference
nostr://npub1fllw8kw0thjj55wds0uugcnp5kej2nfxd36eruq39d56wwz8r44q5q78wj/wss%3A%2F%2Fgit.napplet.soy%2F/powder-toy

Archive hash verified: ed7d6a8ea7083197…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

source/patches/tpt-libs-single-thread.patch
tpt-libs v20251019131007 (4fe4f8eb4fbba07237710ac15c0f0eb35866b333): build the
wasm32-emscripten libraries (fftw, jsoncpp, lua) without USE_PTHREADS, for the
single-thread build of the Powder Toy napplet (BIMbeamFLX/powder-toy-napplet). Objects compiled
for threads carry atomics and cannot go into a module without shared memory.

Applied by scripts/build-wasm.sh with git apply.

diff --git a/.github/build.sh b/.github/build.sh
index d0bc2cb..06dda06 100755
--- a/.github/build.sh
+++ b/.github/build.sh
@@ -278,9 +278,9 @@ elif [[ $BSH_HOST_PLATFORM == darwin ]]; then
 	export OBJC
 	export OBJCXX
 elif [[ $BSH_HOST_PLATFORM == emscripten ]]; then
-	EMCC_CFLAGS="-s USE_PTHREADS=1" # for cmake
+	EMCC_CFLAGS="" # for cmake
 	CC="emcc $EMCC_CFLAGS" # for everything else
-	EMCC_CXXFLAGS="-s DISABLE_EXCEPTION_CATCHING=0 -s USE_PTHREADS=1" # for cmake
+	EMCC_CXXFLAGS="-s DISABLE_EXCEPTION_CATCHING=0" # for cmake
 	CXX="em++ $EMCC_CXXFLAGS" # for everything else
 	AR=emar
 	export CC