-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,5 @@ | |
/.eric6project | ||
/demos | ||
/tests/code | ||
/support/sim.links | ||
/scratchbook/ | ||
ATTIC | ||
/ATTIC |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ $HPIP install --upgrade pip | |
|
||
# 3.12 and git deprecated setuptools bundling. | ||
$HPIP install --upgrade setuptools | ||
|
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,62 @@ | ||
#!/bin/bash | ||
|
||
|
||
if [[ -z ${WASISDK+z} ]] | ||
then | ||
. ${CONFIG:-config} | ||
|
||
export WASISDK="${SDKROOT}/wasisdk" | ||
export WASI_SDK_PREFIX="${WASISDK}/upstream" | ||
|
||
|
||
|
||
if [ -d ${WASI_SDK_PREFIX} ] | ||
then | ||
echo " | ||
* using wasisdk from $(realpath wasisdk/upstream) | ||
with sys python $SYS_PYTHON | ||
" 1>&2 | ||
else | ||
pushd wasisdk | ||
if [ -f /pp ] | ||
then | ||
wget -c http://192.168.1.66/cfake/wasi-sdk-20.0-linux.tar.gz | ||
else | ||
wget -c https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz | ||
fi | ||
tar xfz wasi-sdk-20.0-linux.tar.gz | ||
mv wasi-sdk-20.0 upstream && rm wasi-sdk-20.0-linux.tar.gz | ||
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-c | ||
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-cpp | ||
ln ${SDKROOT}/wasisdk/bin/wasi ${SDKROOT}/wasisdk/bin/wasi-c++ | ||
popd | ||
|
||
fi | ||
|
||
export PATH="${WASISDK}/bin:${WASI_SDK_PREFIX}/bin:$PATH" | ||
|
||
export WASI_SYSROOT="${WASI_SDK_PREFIX}/share/wasi-sysroot" | ||
|
||
export CC="${WASISDK}/bin/wasi-c" | ||
export CPP="${WASISDK}/bin/wasi-cpp" | ||
export CXX="${WASISDK}/bin/wasi++" | ||
|
||
|
||
export LDSHARED="${WASI_SDK_PREFIX}/bin/wasm-ld" | ||
export AR="${WASI_SDK_PREFIX}/bin/llvm-ar" | ||
export RANLIB="${WASI_SDK_PREFIX}/bin/ranlib" | ||
|
||
|
||
# instruct pkg-config to use wasi target root | ||
export PKG_CONFIG_PATH="${SDKROOT}/devices/wasi/usr/lib/pkgconfig" | ||
|
||
# for thirparty prebuilts .pc in sdk | ||
export PKG_CONFIG_LIBDIR="${WASI_SYSROOT}/lib/pkgconfig:${WASI_SYSROOT}/share/pkgconfig" | ||
export PKG_CONFIG_SYSROOT_DIR="${WASI_SYSROOT}" | ||
|
||
|
||
|
||
|
||
else | ||
echo "wasidk: config already set !" 1>&2 | ||
fi |