@ai-ecoverse/wasm-emscripten 6.0.9-17 → 6.0.9-18
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/README.md +6 -0
- package/emscripten-config +13 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@ Emscripten **6.0.9-git** for the SLICC wasm realm. Launchers run `emcc.py`
|
|
|
4
4
|
(and friends) on `@ai-ecoverse/wasix-python` (`python3 -S`) with `EM_CONFIG`
|
|
5
5
|
pointing at this package's config.
|
|
6
6
|
|
|
7
|
+
> **emcc does not run on slicc-kernel yet** (exec of the glue by path, and no
|
|
8
|
+
> `node`), see [slicc-kernel#390](https://github.com/ai-ecoverse/slicc-kernel/issues/390).
|
|
9
|
+
> Since 6.0.9-18 the companions are found beside this package (npm, slicc's
|
|
10
|
+
> `ipk add -g`, pnpm's virtual store) instead of only under
|
|
11
|
+
> `/shared/lib/node_modules`.
|
|
12
|
+
|
|
7
13
|
## Companions
|
|
8
14
|
|
|
9
15
|
| Package | Role |
|
package/emscripten-config
CHANGED
|
@@ -4,9 +4,19 @@ import os
|
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
|
|
6
6
|
_pkg = Path(os.environ.get('EM_PACKAGE_ROOT', Path(__file__).resolve().parent))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _dep(var, default):
|
|
10
|
+
# slicc.env gives ${package}/../<dep>: the dependency beside this package
|
|
11
|
+
# (npm, slicc's ipk), or beside it in pnpm's virtual store, reached through
|
|
12
|
+
# the project's symlink. resolve() takes the `..` physically; slicc-kernel
|
|
13
|
+
# looks up commands spawned by path (LLVM_ROOT/clang) lexically.
|
|
14
|
+
return Path(os.environ.get(var, default)).resolve()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
_clang = _dep('EM_LLVM_PACKAGE', '/shared/lib/node_modules/@ai-ecoverse/wasm-clang')
|
|
18
|
+
_binaryen = _dep('EM_BINARYEN_PACKAGE', '/shared/lib/node_modules/@ai-ecoverse/wasm-binaryen')
|
|
19
|
+
_cache_pkg = _dep('EM_CACHE_PACKAGE', '/shared/lib/node_modules/@ai-ecoverse/emscripten-cache')
|
|
10
20
|
|
|
11
21
|
LLVM_ROOT = str(_clang / 'bin')
|
|
12
22
|
BINARYEN_ROOT = str(_binaryen)
|
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-18",
|
|
4
4
|
"description": "Emscripten 6.0.9 for slicc (emcc via wasix-python)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"env": {
|
|
65
65
|
"EM_PACKAGE_ROOT": "${package}",
|
|
66
66
|
"EM_CONFIG": "${package}/emscripten-config",
|
|
67
|
-
"EM_CACHE_PACKAGE": "
|
|
68
|
-
"EM_LLVM_PACKAGE": "
|
|
69
|
-
"EM_BINARYEN_PACKAGE": "
|
|
67
|
+
"EM_CACHE_PACKAGE": "${package}/../emscripten-cache",
|
|
68
|
+
"EM_LLVM_PACKAGE": "${package}/../wasm-clang",
|
|
69
|
+
"EM_BINARYEN_PACKAGE": "${package}/../wasm-binaryen",
|
|
70
70
|
"SLICC_EM_LIBDIR": "${package}/lib/slicc"
|
|
71
71
|
},
|
|
72
72
|
"commands": {
|