@ai-ecoverse/wasm-emscripten 6.0.9-6 → 6.0.9-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/em++ +68 -0
- package/em-config +68 -0
- package/emar +68 -0
- package/embuilder +68 -0
- package/emcc +68 -0
- package/emcmake +68 -0
- package/emconfigure +68 -0
- package/emmake +68 -0
- package/emranlib +68 -0
- package/emscan-deps +68 -0
- package/package.json +11 -1
package/em++
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/em-config
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emar
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/embuilder
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emcc
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emcmake
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emconfigure
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emmake
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emranlib
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/emscan-deps
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Shared launcher for emcc/em++/emar/… — runs em*.py on wasix-python (-S).
|
|
3
|
+
# Self-sufficient when invoked by path (emcmake toolchain uses $PKG/emcc).
|
|
4
|
+
set -eu
|
|
5
|
+
|
|
6
|
+
TOOL=$(basename "$0")
|
|
7
|
+
BINDIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
8
|
+
|
|
9
|
+
# $PKG/emcc (cmake / path_from_root) → package root is BINDIR.
|
|
10
|
+
# $PKG/bin/emcc (slicc.commands) → package root is parent.
|
|
11
|
+
if [ -f "$BINDIR/emcc.py" ]; then
|
|
12
|
+
PKG_ROOT=$BINDIR
|
|
13
|
+
ENSURE_CACHE=$BINDIR/bin/em-ensure-cache
|
|
14
|
+
elif [ -f "$BINDIR/../emcc.py" ]; then
|
|
15
|
+
PKG_ROOT=$(CDPATH= cd -- "$BINDIR/.." && pwd)
|
|
16
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
17
|
+
else
|
|
18
|
+
PKG_ROOT=${EM_PACKAGE_ROOT:-$BINDIR}
|
|
19
|
+
ENSURE_CACHE=$BINDIR/em-ensure-cache
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
export EM_PACKAGE_ROOT=${EM_PACKAGE_ROOT:-$PKG_ROOT}
|
|
23
|
+
export EM_CONFIG=${EM_CONFIG:-$PKG_ROOT/emscripten-config}
|
|
24
|
+
|
|
25
|
+
# Resolve companion packages when slicc.env did not set them.
|
|
26
|
+
: "${EM_CACHE_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/emscripten-cache}"
|
|
27
|
+
: "${EM_LLVM_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-clang}"
|
|
28
|
+
: "${EM_BINARYEN_PACKAGE:=/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen}"
|
|
29
|
+
export EM_CACHE_PACKAGE EM_LLVM_PACKAGE EM_BINARYEN_PACKAGE
|
|
30
|
+
|
|
31
|
+
# Writable user CACHE + sysroot symlink into emscripten-cache.
|
|
32
|
+
if [ ! -x "$ENSURE_CACHE" ]; then
|
|
33
|
+
echo "em-launcher: missing $ENSURE_CACHE" >&2
|
|
34
|
+
exit 1
|
|
35
|
+
fi
|
|
36
|
+
CACHE=$("$ENSURE_CACHE")
|
|
37
|
+
export EM_CACHE=$CACHE
|
|
38
|
+
|
|
39
|
+
# libslicc objects for default executable links (link.py); not the node-realm VFS pre-js.
|
|
40
|
+
export SLICC_EM_LIBDIR=${SLICC_EM_LIBDIR:-$PKG_ROOT/lib/slicc}
|
|
41
|
+
# Do NOT default-export SLICC_VFS_PRE_JS — that pre-js reads process.env.SLICC_LIVE_FS
|
|
42
|
+
# (node-realm only) and breaks wasm-realm runnables. Opt in explicitly if needed.
|
|
43
|
+
|
|
44
|
+
PY=${EMSDK_PYTHON:-}
|
|
45
|
+
if [ -z "$PY" ]; then
|
|
46
|
+
PY=$(command -v python3 2>/dev/null || true)
|
|
47
|
+
fi
|
|
48
|
+
if [ -z "$PY" ]; then
|
|
49
|
+
PY=$(command -v python 2>/dev/null || true)
|
|
50
|
+
fi
|
|
51
|
+
if [ -z "$PY" ]; then
|
|
52
|
+
echo "em-launcher: unable to find python3 (need @ai-ecoverse/wasix-python)" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
SCRIPT=$PKG_ROOT/${TOOL}.py
|
|
57
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
58
|
+
case $TOOL in
|
|
59
|
+
em++) SCRIPT=$PKG_ROOT/em++.py ;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
if [ ! -f "$SCRIPT" ]; then
|
|
63
|
+
echo "em-launcher: missing $SCRIPT" >&2
|
|
64
|
+
exit 1
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
# -S: no site-packages from a host install; wasix-python is self-contained.
|
|
68
|
+
exec "$PY" -S "$SCRIPT" "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/wasm-emscripten",
|
|
3
|
-
"version": "6.0.9-
|
|
3
|
+
"version": "6.0.9-7",
|
|
4
4
|
"description": "Emscripten 6.0.9 for slicc (emcc via wasix-python)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,6 +22,16 @@
|
|
|
22
22
|
"emscripten-config",
|
|
23
23
|
"bin",
|
|
24
24
|
"lib",
|
|
25
|
+
"emcc",
|
|
26
|
+
"em++",
|
|
27
|
+
"emar",
|
|
28
|
+
"emranlib",
|
|
29
|
+
"emcmake",
|
|
30
|
+
"emconfigure",
|
|
31
|
+
"emmake",
|
|
32
|
+
"embuilder",
|
|
33
|
+
"em-config",
|
|
34
|
+
"emscan-deps",
|
|
25
35
|
"*.py",
|
|
26
36
|
"tools",
|
|
27
37
|
"src",
|