Skip to content

Commit 63cd78b

Browse files
committed
Fix for ToolchainTestCase failure on non-FreeBSD systems
1 parent ef94156 commit 63cd78b

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)