File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
utils/swift_build_support Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def __init__(self):
147
147
super (FreeBSD , self ).__init__ (suffixes )
148
148
149
149
@cache_util .reify
150
- def _release_date ():
150
+ def _release_date (self ):
151
151
"""Return the release date for FreeBSD operating system on this host.
152
152
If the release date cannot be ascertained, return None.
153
153
"""
Original file line number Diff line number Diff line change 12
12
import os
13
13
import unittest
14
14
15
+ from swift_build_support import toolchain
15
16
from swift_build_support .toolchain import host_toolchain
16
17
17
18
@@ -110,6 +111,14 @@ def test_tools_llvm_suffix(self):
110
111
if profdata_suffix is not None :
111
112
self .assertEqual (cc_suffix , profdata_suffix )
112
113
114
+ def test_toolchain_instances (self ):
115
+ # Check that we can instantiate every toolchain, even if it isn't the
116
+ # current patform.
117
+ toolchain .MacOSX ()
118
+ toolchain .Linux ()
119
+ toolchain .FreeBSD ()
120
+ toolchain .Cygwin ()
121
+
113
122
114
123
if __name__ == '__main__' :
115
124
unittest .main ()
You can’t perform that action at this time.
0 commit comments