From 174ece5b365d5245ad3a9d8426183681e0c1fc20 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 25 Jan 2024 20:08:48 -0500 Subject: [PATCH] Don't try to install the emscripten SDK. We already assume the user has a working compiler, so making the setup of emscripten itself the user's responsibility makes sense. Plus there are multiple ways it can be set up; Debian has a package for example. This changes the emscripten pkgdef to just install wrapper scripts and ditch the code to set up the SDK. --- pkgdef/emscripten.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgdef/emscripten.sh b/pkgdef/emscripten.sh index deda21c..93b284b 100644 --- a/pkgdef/emscripten.sh +++ b/pkgdef/emscripten.sh @@ -1,9 +1,13 @@ description "Emscripten build environment" -fetch_git https://github.com/juj/emsdk.git main + +do_fetch() { + check_tool emcc + mkdir -p "$PACKAGE_BUILD_DIR" + echo "This is just a dummy directory" > "$PACKAGE_BUILD_DIR/README" +} do_build() { - ./emsdk install latest - ./emsdk activate latest + true } make_wrapper_script() { @@ -31,6 +35,8 @@ do_install() { make_wrapper_script ld emcc make_wrapper_script nm emnm make_wrapper_script ranlib emranlib + + echo "Wrapper scripts installed." } check_tool wasm32-unknown-emscripten-gcc