File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,18 @@ WORKDIR=$(realpath ${WORKDIR})
25
25
HOST_OS=ubuntu$( lsb_release -sr)
26
26
source ./scripts/toolchain-vars.sh
27
27
28
- SWIFT_ROOT=${WORKDIR} /host-toolchain
29
- HOST_TOOLCHAIN=$SWIFT_ROOT /$SWIFT_BASE /usr
30
- if [[ ! -d " $HOST_TOOLCHAIN " ]]; then
31
- ./scripts/install-swift.sh ${HOST_TOOLCHAIN}
32
- fi
28
+ if [[ " ${BUILD_COMPILER} " != " 0" ]]; then
29
+ SWIFT_ROOT=${WORKDIR} /host-toolchain
30
+ HOST_TOOLCHAIN=$SWIFT_ROOT /$SWIFT_BASE /usr
31
+ if [[ ! -d " $HOST_TOOLCHAIN " ]]; then
32
+ ./scripts/install-swift.sh ${HOST_TOOLCHAIN}
33
+ fi
33
34
34
- $HOST_TOOLCHAIN /bin/swift --version
35
+ $HOST_TOOLCHAIN /bin/swift --version
35
36
36
- # ensure the correct Swift is first in the PATH
37
- export PATH=$HOST_TOOLCHAIN /bin:$PATH
37
+ # ensure the correct Swift is first in the PATH
38
+ export PATH=$HOST_TOOLCHAIN /bin:$PATH
39
+ fi
38
40
39
41
export ANDROID_NDK_HOME=${WORKDIR} /ndk/${ANDROID_NDK_VERSION}
40
42
Original file line number Diff line number Diff line change 89
89
if [[ -z " ${BORINGSSL_VERSION} " ]]; then
90
90
BORINGSSL_VERSION=fips-20220613
91
91
fi
92
+ if [[ -z " ${YAMS_VERSION} " ]]; then
93
+ YAMS_VERSION=5.0.6
94
+ fi
92
95
if [[ -z " ${SWIFT_ANDROID_PATCHES_VERSION} " ]]; then
93
96
SWIFT_ANDROID_PATCHES_VERSION=main
94
97
fi
158
161
popd > /dev/null
159
162
groupend
160
163
161
- # Fetch yams (needed for Swift 6.1.1 )
164
+ # Fetch yams (needed for Swift 6.1.x )
162
165
groupstart " Fetching yams"
163
166
pushd swift-project > /dev/null
164
167
[[ -d yams ]] || git clone ${github} jpsim/Yams.git yams
168
+ pushd libxml2 > /dev/null 2>&1
169
+ git checkout ${YAMS_VERSION}
170
+ popd > /dev/null 2>&1
165
171
popd > /dev/null
166
172
groupend
167
173
You can’t perform that action at this time.
0 commit comments