Skip to content

Commit e5f815b

Browse files
committed
emsdk patch fix
1 parent 00da748 commit e5f815b

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

config

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ EXTRABINS="$EXTRABINS ${JAVA_HOME}/bin"
8686

8787
# =============== Nimrod ====================
8888

89-
# stable
89+
# tested
9090
NIM_VERSION=nim-2.0.8
9191

9292
# testing
93-
NIM_VERSION=nim-2.2.0
93+
NIM_VERSION=${NIM_VERSION:-nim-2.2.2}
94+
9495
NIM_URL=https://nim-lang.org/download/${NIM_VERSION}-linux_x64.tar.xz
9596

9697
#NIM_VERSION=nim-git
@@ -130,9 +131,8 @@ EXTRABINS="$EXTRABINS $BUN_INSTALL/bin"
130131

131132
# ================ aosp ===================
132133

133-
AOSP_NDK=${AOSP_NDK:-27.1.12297006}
134-
REACT_NATIVE="[email protected]"
135-
134+
export AOSP_NDK=${AOSP_NDK:-25.2.9519653}
135+
export REACT_NATIVE="[email protected]"
136136

137137
# =========== panda3d =================
138138

python-wasi-sdk.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/bash
22
reset
33

4+
[ -f ../config ] && . ../config
5+
46
# TODO: check how dbg tools work with default settings
57
# https://developer.chrome.com/blog/wasm-debugging-2020/
68

7-
mkdir -p /tmp/sdk-bin
8-
export PATH=/tmp/sdk-bin:$PATH
9-
109
if which python3
1110
then
1211
SYS_PYTHON=$(which python3)

python-wasm-sdk.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/bash
22
reset
33

4+
[ -f ../config ] && . ../config
5+
46
# TODO: check how dbg tools work with default settings
57
# https://developer.chrome.com/blog/wasm-debugging-2020/
68

7-
mkdir -p /tmp/sdk-bin
8-
export PATH=/tmp/sdk-bin:$PATH
9-
109
if which python3
1110
then
1211
SYS_PYTHON=$(which python3)

scripts/cpython-fetch.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ fi
7979

8080
if echo $PYBUILD |grep -q 13$
8181
then
82-
if [ -d Python-3.13.1 ]
82+
if [ -d Python-3.13.2 ]
8383
then
8484
echo " * Using local cpython sources"
8585
else
8686
pwd
8787
ls
8888
echo " * fetching remote cpython sources"
89-
wget -q -c https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tar.xz
90-
tar xf Python-3.13.1.tar.xz || exit 87
89+
wget -q -c https://www.python.org/ftp/python/3.13.2/Python-3.13.2.tar.xz
90+
tar xf Python-3.13.2.tar.xz || exit 87
9191
fi
9292

93-
ln -s Python-3.13.1 cpython${PYBUILD}
93+
ln -s Python-3.13.2 cpython${PYBUILD}
9494

9595
sed -i 's|ProcessPoolExecutor = None|return True|g' cpython3.13/Lib/compileall.py
9696

@@ -125,9 +125,9 @@ fi
125125

126126
if echo $PYBUILD |grep -q 12$
127127
then
128-
wget -q -c https://www.python.org/ftp/python/3.12.8/Python-3.12.8.tar.xz
129-
tar xf Python-3.12.8.tar.xz
130-
ln -s Python-3.12.8 cpython${PYBUILD}
128+
wget -q -c https://www.python.org/ftp/python/3.12.9/Python-3.12.9.tar.xz
129+
tar xf Python-3.12.9.tar.xz
130+
ln -s Python-3.12.9 cpython${PYBUILD}
131131
fi
132132

133133

scripts/emsdk-fetch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ then
3535
else
3636
pushd emsdk
3737

38-
pushd emsdk/upstream/emscripten
38+
pushd upstream/emscripten
3939

4040
echo "FIXME: applying stdio* are not const"
4141
sed -i 's|extern FILE \*const|extern FILE \*|g' cache/sysroot/include/stdio.h
@@ -104,7 +104,7 @@ END
104104
#wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/22605.diff
105105
#patch -p1 < 22605.diff
106106

107-
popd # emsdk/upstream/emscripten
107+
popd # emsdk/upstream/emscripten -> emsdk
108108

109109
# wget https://raw.githubusercontent.com/paradust7/minetest-wasm/main/emsdk_emcc.patch
110110
# patch -p1 < emsdk_emcc.patch
@@ -119,7 +119,7 @@ END
119119
stubs[prop] = (...args) => {
120120
resolved ||= resolveSymbol(prop);
121121
+ if (!resolved) {
122-
+ throw new Error(`Dynamic linking error: cannot resolve symbol ${prop}`);
122+
+ throw new Error(\`Dynamic linking error: cannot resolve symbol \${prop}\`);
123123
+ }
124124
return resolved(...args);
125125
};

0 commit comments

Comments
 (0)