Skip to content

Commit 9a426f4

Browse files
committed
Merge pull request #62 from modocache/xctestexpectation-build-script-migration
[build_script.py] Add --foundation-build-dir parameter [AsyncXCTest 1/6]
2 parents afc816c + 4599128 commit 9a426f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build_script.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ def main(args=sys.argv[1:]):
159159
"temporary directory is used",
160160
metavar="PATH",
161161
default=tempfile.mkdtemp())
162+
build_parser.add_argument(
163+
"--foundation-build-dir",
164+
help="Path to swift-corelibs-foundation build products, which "
165+
"the built XCTest.so will be linked against.",
166+
metavar="PATH",
167+
required=False)
162168
build_parser.add_argument("--swift-build-dir",
163169
help="deprecated, do not use")
164170
build_parser.add_argument("--arch", help="deprecated, do not use")
@@ -208,6 +214,12 @@ def main(args=sys.argv[1:]):
208214
"--swiftc",
209215
help="Path to the 'swiftc' compiler used to build and run the tests.",
210216
required=True)
217+
test_parser.add_argument(
218+
"--foundation-build-dir",
219+
help="Path to swift-corelibs-foundation build products, which the "
220+
"tests will be linked against.",
221+
metavar="PATH",
222+
required=False)
211223

212224
install_parser = subparsers.add_parser(
213225
"install",

0 commit comments

Comments
 (0)