-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NativeAOT-LLVM] add support for building WASI and browser debug & re…
…lease on Linux (#2605) * Add Linux WASI and browser jobs hard code container in matrix update platform name * remove container from runtimelab.yml * reinstate and rename script extension as emcc does not use `.sh` on linux * update platform name * linux install of wasmtime * Set NATIVEAOT_CI_WASM_BUILD_EMSDK_PATH Remove wasi http implementation as it fails with Caused by: 0: component imports instance `wasi:http/types@0.2.1`, but a matching implementation was not found in the linker 1: instance export `fields` has the wrong type 2: resource implementation is missing * remove NATIVEAOT_CI_WASM_BUILD_EMSDK_PATH, use EMSDK * log EMSDK and use Write-Output * Add CI parameter * use InstallDir/emsdk * Update eng/testing/FindWasmHostExecutable.sh Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> * Remove libtinfo dependency * Change container, dropp ROOTFS env * take upstream #106569 * Update src/tests/build.sh - thanks Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com> --------- Co-authored-by: SingleAccretion <62474226+SingleAccretion@users.noreply.github.com>
- Loading branch information
1 parent
87eee57
commit c213405
Showing
28 changed files
with
278 additions
and
58 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
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
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
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo '##vso[task.setvariable variable=EMSDK_PYTHON]'/usr/bin/python3 |
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
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,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
exename=$(basename "$1" .wasm) | ||
exename=$(basename "$exename" .dll) | ||
exename=$(basename "$exename" .js) | ||
dirname=$(dirname "$1") | ||
|
||
node="node --stack_trace_limit=100" | ||
WASM_HOST_ARGS_SEPERATOR="" | ||
|
||
if [ -e "${dirname}/${exename}.js" ]; then | ||
WASM_HOST_EXECUTABLE=$node | ||
WASM_BINARY_TO_EXECUTE="${dirname}/${exename}.js" | ||
elif [ -e "${dirname}/main.js" ]; then | ||
WASM_HOST_EXECUTABLE=$node | ||
WASM_BINARY_TO_EXECUTE="${dirname}/main.js" | ||
elif [ -e "${dirname}/${exename}.mjs" ]; then | ||
WASM_HOST_EXECUTABLE=$node | ||
WASM_BINARY_TO_EXECUTE="${dirname}/${exename}.mjs" | ||
elif [ -e "${dirname}/main.mjs" ]; then | ||
WASM_HOST_EXECUTABLE=$node | ||
WASM_BINARY_TO_EXECUTE="${dirname}/main.mjs" | ||
elif [ -e "${dirname}/${exename}.wasm" ]; then | ||
WASM_HOST_EXECUTABLE=$WASMTIME_EXECUTABLE | ||
WASM_HOST_ARGS_SEPERATOR="--" | ||
WASM_BINARY_TO_EXECUTE="${dirname}/${exename}.wasm" | ||
fi |
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) | ||
|
||
source $SCRIPT_DIR/FindWasmHostExecutable.sh "$1" | ||
|
||
if [ -n "${WASM_HOST_EXECUTABLE}" ]; then | ||
shift | ||
echo $WASM_HOST_EXECUTABLE "$WASM_BINARY_TO_EXECUTE" $WASM_HOST_ARGS_SEPERATOR "$@" | ||
$WASM_HOST_EXECUTABLE "$WASM_BINARY_TO_EXECUTE" $WASM_HOST_ARGS_SEPERATOR "$@" | ||
else | ||
echo WASM_HOST_EXECUTABLE not set. | ||
exit 1 | ||
fi |
Oops, something went wrong.