Replies: 3 comments 1 reply
-
Ok, not as easy as I thought. Such build tools need So instead of just running with Anyway, I did get Freetype (#17008) to build with this workaround: emconfigure ./configure
env EMCC_CFLAGS=-sNODERAWFS=1 emmake make "$(pwd)/objs/apinames"
sed -i '1s;^;\#\!\/usr\/bin\/env node\n;' objs/apinames
chmod +x objs/apinames
emmake make |
Beta Was this translation helpful? Give feedback.
-
I like this idea, and indeed we already do do this in some case. See Lines 496 to 500 in 49ab23a Right now we only do this under certain circumstances, and we don't expose it as a user-facing option yet: Lines 659 to 666 in 49ab23a |
Beta Was this translation helpful? Give feedback.
-
I'm interested to run the Emscripten-produced JS/wasm with node to do CI-testing (e.g. I managed to compile Perl to wasm and would like to run some What are the necessary emcc/linker flags to be able to direcly run the produced executable with @sbc100 Are there any hacks to auto-add this shebang? Or are there any other options besides |
Beta Was this translation helpful? Give feedback.
-
I was wondering, why not add
#!/usr/bin/env node
or something to all built executables (andchmod +x
them)?I don't see a downside, at least if this is optional/configurable, and this would be an easy fix for #17008/#7086: i.e. build-system self execution.
(Perhaps this is already possible, but I did not find a way to enable it.)
Beta Was this translation helpful? Give feedback.
All reactions