Skip to content

Commit a1f3b6a

Browse files
committed
set PLATFORM
1 parent 1881694 commit a1f3b6a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

python-wasm-sdk/python-wasi-sdk.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ pause () {
4242
fi
4343
}
4444

45+
# sane default
46+
PLATFORM=linux
4547

4648
DISTRIB_RELEASE=${DISTRIB_RELEASE:-any}
4749

4850
# is it linux enough ?
4951
if [ -f /etc/lsb-release ]
5052
then
5153
. /etc/lsb-release
52-
export PLATFORM=linux
54+
PLATFORM=linux
5355
else
5456
# is it Debian
5557
if [ -f /etc/os-release ]
@@ -67,7 +69,7 @@ else
6769
fi
6870

6971
export DISTRIB="${DISTRIB_ID}-${DISTRIB_RELEASE}"
70-
72+
export PLATFORM
7173
export SDKROOT=${SDKROOT:-/tmp/sdk}
7274

7375
# default is behave like a CI

python-wasm-sdk/python-wasm-sdk.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ pause () {
4242
fi
4343
}
4444

45+
# sane default
46+
PLATFORM=linux
4547

4648
DISTRIB_RELEASE=${DISTRIB_RELEASE:-any}
4749

4850
# is it linux enough ?
4951
if [ -f /etc/lsb-release ]
5052
then
5153
. /etc/lsb-release
52-
export PLATFORM=linux
54+
PLATFORM=linux
5355
else
5456
# is it Debian
5557
if [ -f /etc/os-release ]
@@ -67,7 +69,7 @@ else
6769
fi
6870

6971
export DISTRIB="${DISTRIB_ID}-${DISTRIB_RELEASE}"
70-
72+
export PLATFORM
7173
export SDKROOT=${SDKROOT:-/tmp/sdk}
7274

7375
# default is behave like a CI

0 commit comments

Comments
 (0)