-
Notifications
You must be signed in to change notification settings - Fork 387
[PHP] Exploration - Recompile PHP with MAIN_MODULE set to 2 #3086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
|
Recompiling PHP with Meaning : emcc $OPTIMIZATION_FLAGS \
--js-library /root/phpwasm-emscripten-library.js \
--js-library /root/phpwasm-emscripten-library-dynamic-linking.js \
--js-library /root/phpwasm-emscripten-library-known-undefined-functions.js \
$PLATFORM_SPECIFIC_ARGS \
-I . \
-I ext \
-I ext/json \
-I Zend \
-I main \
-I TSRM/ \
-I/root/lib -I/root/lib/include \
-L/root/lib -L/root/lib/lib/ \
-D__x86_64__\
-lproxyfs.js \
$ASYNCIFY_FLAGS \
$(cat /root/.emcc-php-wasm-flags) \
+ /root/extensions/intl.so \
+ /root/extensions/xdebug.so \
-s MAIN_MODULE=2 \
-s EXPORTED_FUNCTIONS="$EXPORTED_FUNCTIONS" \This means I will need to access Another error is related to |
|
It basically moved the 4-5Mb from .wasm to .js file. Not really what I expected. But I now understand how things should work. |
1af6fbf to
4ef1b86
Compare
…HP.wasm compilation with DCE
de1975e to
83206e1
Compare
Motivation for the change, related issues
TBD
Implementation details
TBD
Testing Instructions (or ideally a Blueprint)
CI