-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-127629: Add ctypes to the Emscripten build #127683
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
Changes from all commits
d9b6e9b
8172368
91a70b3
a3f4891
556de1e
f670c21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Emscripten builds now include ctypes support. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set +e | ||
|
||
export CFLAGS="-O2 -fPIC -DWASM_BIGINT" | ||
export CXXFLAGS="$CFLAGS" | ||
|
||
# Build paths | ||
export CPATH="$PREFIX/include" | ||
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" | ||
export EM_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" | ||
|
||
# Specific variables for cross-compilation | ||
export CHOST="wasm32-unknown-linux" # wasm32-unknown-emscripten | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this end up being There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. Maybe I put it that way while debugging and didn't notice before merging. |
||
|
||
emconfigure ./configure --host=$CHOST --prefix="$PREFIX" --enable-static --disable-shared --disable-dependency-tracking \ | ||
--disable-builddir --disable-multi-os-directory --disable-raw-api --disable-docs | ||
|
||
make install | ||
# Some forgotten headers? | ||
cp fficonfig.h $PREFIX/include/ | ||
cp include/ffi_common.h $PREFIX/include/ |
Uh oh!
There was an error while loading. Please reload this page.