Skip to content

Commit 5c702f7

Browse files
authored
Merge pull request #188 from tkremenek/force-ver-3
Force use of -swift-version 3 to build XCTest sources.
2 parents c2c0bc7 + fbcd71d commit 5c702f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_script.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ def build(args):
180180
else:
181181
libdispatch_args = ""
182182

183+
# NOTE: Force -swift-version 3 to build XCTest sources.
183184
run("{swiftc} -Xcc -fblocks -c {style_options} -emit-object -emit-module "
184185
"-module-name XCTest -module-link-name XCTest -parse-as-library "
185186
"-emit-module-path {build_dir}/XCTest.swiftmodule "
186187
"-force-single-frontend-invocation "
188+
"-swift-version 3 "
187189
"-I {foundation_build_dir} -I {core_foundation_build_dir} "
188190
"{libdispatch_args} "
189191
"{source_paths} -o {build_dir}/XCTest.o".format(

0 commit comments

Comments
 (0)