File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
- SOURCE_PATH=" $( cd " $( dirname $0 ) /../../.." && pwd ) "
5
+ SOURCE_PATH=" $( cd " $( dirname $0 ) /../../.." && pwd) "
6
6
SWIFT_PATH=$SOURCE_PATH /swift
7
7
UTILS_PATH=$SWIFT_PATH /utils/webassembly
8
-
9
- case $( uname -s) in
10
- Darwin)
11
- HOST_SUFFIX=macosx-$( uname -m)
12
- ;;
13
- Linux)
14
- HOST_SUFFIX=linux-$( uname -m)
15
- ;;
16
- * )
17
- echo " Unrecognised platform $( uname -s) "
18
- exit 1
19
- ;;
20
- esac
21
-
22
8
BUILD_SCRIPT=$UTILS_PATH /build-toolchain.sh
23
- RUN_TEST_BIN=$SWIFT_PATH /utils/run-test
24
- TARGET_STDLIB_BUILD_DIR=$SOURCE_PATH /target-build/swift-stdlib-wasi-wasm32
25
9
BUILD_SDK_PATH=" $SOURCE_PATH /build-sdk"
26
10
27
11
export WASMER_DIR=" $BUILD_SDK_PATH /wasmer"
@@ -33,7 +17,4 @@ export PATH="$BUILD_SDK_PATH/bin:$PATH"
33
17
export SCCACHE_CACHE_SIZE=" 50G"
34
18
export SCCACHE_DIR=" $SOURCE_PATH /build-cache"
35
19
36
- $BUILD_SCRIPT
37
-
38
- # workaround: host target test directory is necessary to use run-test
39
- mkdir -p " $TARGET_STDLIB_BUILD_DIR /test-$HOST_SUFFIX "
20
+ $UTILS_PATH /build-toolchain.sh
You can’t perform that action at this time.
0 commit comments