Skip to content

Commit f18abd3

Browse files
authored
Merge pull request #6223 from linux-on-ibm-z/master-s390x-toolchainTC
2 parents 818b3a4 + 63cd78b commit f18abd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/swift_build_support/swift_build_support/toolchain.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ def __init__(self):
137137

138138
class FreeBSD(GenericUnix):
139139
def __init__(self):
140+
# For testing toolchain initializer on non-FreeBSD systems
141+
sys = platform.system()
142+
if sys != 'FreeBSD':
143+
suffixes = ['']
140144
# See: https://github.com/apple/swift/pull/169
141145
# Building Swift from source requires a recent version of the Clang
142146
# compiler with C++14 support.
143-
if self._release_date and self._release_date >= 1100000:
147+
elif self._release_date and self._release_date >= 1100000:
144148
suffixes = ['']
145149
else:
146150
suffixes = ['38', '37', '36', '35']

0 commit comments

Comments
 (0)