-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for
wasm32-unknown-emscripten
target
- Loading branch information
Showing
8 changed files
with
177 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
include Cargo.toml Cargo.lock | ||
include Readme.md | ||
include license-apache license-mit | ||
recursive-include src *.rs | ||
recursive-include src *.rs *.py | ||
recursive-include src/auditwheel *.json | ||
recursive-include src/python_interpreter *.py *.json | ||
recursive-include src/templates *.j2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
import subprocess | ||
import sys | ||
|
||
|
||
def update_args(args): | ||
# remove -lc. Not sure if it makes a difference but -lc doesn't belong here. | ||
# https://github.com/emscripten-core/emscripten/issues/17191 | ||
for i in reversed(range(len(args))): | ||
if args[i] == "c" and args[i - 1] == "-l": | ||
del args[i - 1 : i + 1] | ||
|
||
return args | ||
|
||
|
||
def main(args): | ||
args = update_args(args) | ||
return subprocess.call(["emcc"] + args) | ||
|
||
|
||
if __name__ == "__main__": | ||
args = sys.argv[1:] | ||
sys.exit(main(args)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"wasm32": [ | ||
{ | ||
"major": 3, | ||
"minor": 10, | ||
"abiflags": "", | ||
"interpreter": "cpython", | ||
"ext_suffix": ".cpython-310-wasm32-emscripten.so", | ||
"abi_tag": "310", | ||
"pointer_width": 32 | ||
}, | ||
{ | ||
"major": 3, | ||
"minor": 11, | ||
"abiflags": "", | ||
"interpreter": "cpython", | ||
"ext_suffix": ".cpython-311-wasm32-emscripten.so", | ||
"abi_tag": "311", | ||
"pointer_width": 32 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters