File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ cmake-c-launcher=%(C_CXX_LAUNCHER)s
7
7
cmake-cxx-launcher =%(C_CXX_LAUNCHER)s
8
8
skip-build-benchmarks
9
9
llvm-targets-to-build =X86; AArch64;WebAssembly
10
- swift-darwin-supported-archs =x86_64
10
+ swift-darwin-supported-archs =%(HOST_ARCHITECTURE)s
11
11
compiler-vendor =swiftwasm
12
12
enable-experimental-concurrency =0
13
13
Original file line number Diff line number Diff line change @@ -8,21 +8,21 @@ WASI_SDK_PATH=$SOURCE_PATH/wasi-sdk
8
8
9
9
case $( uname -s) in
10
10
Darwin)
11
- OS_SUFFIX=macos_x86_64
11
+ OS_SUFFIX=macos_ $( uname -m )
12
12
HOST_PRESET=webassembly-host-install
13
- HOST_SUFFIX=macosx-x86_64
13
+ HOST_SUFFIX=macosx-$( uname -m )
14
14
;;
15
15
Linux)
16
16
if [ " $( grep RELEASE /etc/lsb-release) " == " DISTRIB_RELEASE=18.04" ]; then
17
- OS_SUFFIX=ubuntu18.04_x86_64
17
+ OS_SUFFIX=ubuntu18.04_ $( uname -m )
18
18
elif [ " $( grep RELEASE /etc/lsb-release) " == " DISTRIB_RELEASE=20.04" ]; then
19
- OS_SUFFIX=ubuntu20.04_x86_64
19
+ OS_SUFFIX=ubuntu20.04_ $( uname -m )
20
20
else
21
21
echo " Unknown Ubuntu version"
22
22
exit 1
23
23
fi
24
24
HOST_PRESET=webassembly-linux-host-install
25
- HOST_SUFFIX=linux-x86_64
25
+ HOST_SUFFIX=linux-$( uname -m )
26
26
;;
27
27
* )
28
28
echo " Unrecognised platform $( uname -s) "
@@ -53,6 +53,7 @@ build_host_toolchain() {
53
53
--preset-file=" $UTILS_PATH /build-presets.ini" \
54
54
--preset=$HOST_PRESET \
55
55
--build-dir=" $HOST_BUILD_DIR " \
56
+ HOST_ARCHITECTURE=$( uname -m) \
56
57
INSTALL_DESTDIR=" $HOST_TOOLCHAIN_DESTDIR " \
57
58
TOOLCHAIN_NAME=" $TOOLCHAIN_NAME " \
58
59
C_CXX_LAUNCHER=" $( which sccache) "
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ UTILS_PATH=$SWIFT_PATH/utils/webassembly
9
9
case $( uname -s) in
10
10
Darwin)
11
11
DEPENDENCIES_SCRIPT=$UTILS_PATH /macos/install-dependencies.sh
12
- HOST_SUFFIX=macosx-x86_64
12
+ HOST_SUFFIX=macosx-$( uname -m )
13
13
;;
14
14
Linux)
15
15
DEPENDENCIES_SCRIPT=$UTILS_PATH /linux/install-dependencies.sh
16
- HOST_SUFFIX=linux-x86_64
16
+ HOST_SUFFIX=linux-$( uname -m )
17
17
;;
18
18
* )
19
19
echo " Unrecognised platform $( uname -s) "
You can’t perform that action at this time.
0 commit comments