Skip to content

Commit b7dfdfe

Browse files
committed
3.11.6
1 parent d4de47f commit b7dfdfe

File tree

5 files changed

+68
-6
lines changed

5 files changed

+68
-6
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
/.eric6project
99
/demos
1010
/tests/code
11-
/support/sim.links
1211
/scratchbook/
13-
ATTIC
12+
/ATTIC

config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export PYTHONPYCACHEPREFIX=${PYTHONPYCACHEPREFIX:-$(realpath ${SDKROOT}/build/py
2020
export HOME=${SDKROOT}
2121

2222
export HPY=${HOST_PREFIX}/bin/python${PYBUILD}
23-
export HPIP=${HOST_PREFIX}/bin/pip${PYBUILD}
23+
export HPIP="${HPY} -mpip"
2424

2525
# cpython build opts
2626
export CPOPTS="-Os -g0 -fPIC"

scripts/cpython-build-host-deps.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ $HPIP install --upgrade pip
1313

1414
# 3.12 and git deprecated setuptools bundling.
1515
$HPIP install --upgrade setuptools
16+

scripts/cpython-fetch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ fi
7575

7676
if echo $PYBUILD | grep -q 11$
7777
then
78-
wget -q -c https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz
79-
tar xf Python-3.11.5.tar.xz
80-
ln -s Python-3.11.5 cpython${PYBUILD}
78+
wget -q -c https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tar.xz
79+
tar xf Python-3.11.6.tar.xz
80+
ln -s Python-3.11.6 cpython${PYBUILD}
8181
export REBUILD=true
8282
fi
8383

scripts/wasisdk-fetch.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/bin/bash
2+
3+
4+
if [[ -z ${WASISDK+z} ]]
5+
then
6+
. ${CONFIG:-config}
7+
8+
export WASISDK="${SDKROOT}/wasisdk"
9+
export WASI_SDK_PREFIX="${WASISDK}/upstream"
10+
11+
12+
13+
if [ -d ${WASI_SDK_PREFIX} ]
14+
then
15+
echo "
16+
* using wasisdk from $(realpath wasisdk/upstream)
17+
with sys python $SYS_PYTHON
18+
" 1>&2
19+
else
20+
pushd wasisdk
21+
if [ -f /pp ]
22+
then
23+
wget -c http://192.168.1.66/cfake/wasi-sdk-20.0-linux.tar.gz
24+
else
25+
wget -c https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz
26+
fi
27+
tar xfz wasi-sdk-20.0-linux.tar.gz
28+
mv wasi-sdk-20.0 upstream && rm wasi-sdk-20.0-linux.tar.gz
29+
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-c
30+
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-cpp
31+
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-c++
32+
popd
33+
34+
fi
35+
36+
export PATH="${WASISDK}/bin:${WASI_SDK_PREFIX}/bin:$PATH"
37+
38+
export WASI_SYSROOT="${WASI_SDK_PREFIX}/share/wasi-sysroot"
39+
40+
export CC="${WASISDK}/bin/wasi-c"
41+
export CPP="${WASISDK}/bin/wasi-cpp"
42+
export CXX="${WASISDK}/bin/wasi++"
43+
44+
45+
export LDSHARED="${WASI_SDK_PREFIX}/bin/wasm-ld"
46+
export AR="${WASI_SDK_PREFIX}/bin/llvm-ar"
47+
export RANLIB="${WASI_SDK_PREFIX}/bin/ranlib"
48+
49+
50+
# instruct pkg-config to use wasi target root
51+
export PKG_CONFIG_PATH="${SDKROOT}/devices/wasi/usr/lib/pkgconfig"
52+
53+
# for thirparty prebuilts .pc in sdk
54+
export PKG_CONFIG_LIBDIR="${WASI_SYSROOT}/lib/pkgconfig:${WASI_SYSROOT}/share/pkgconfig"
55+
export PKG_CONFIG_SYSROOT_DIR="${WASI_SYSROOT}"
56+
57+
58+
59+
60+
else
61+
echo "wasidk: config already set !" 1>&2
62+
fi

0 commit comments

Comments
 (0)