Skip to content

Commit 4599128

Browse files
committed
[build_script.py] Add --foundation-build-dir parameter
#43 will add a dependency between swift-corelibs-xctest and swift-corelibs-foundation. This will also necessitate the build script to take a '--foundation-build-dir' parameter. However, the Swift CI does not yet supply this parameter. To prevent CI from breaking when #43 is landed, preemptively add the '--foundation-build-dir' parameter. Before landing #43, the Swift build script will be modified to pass this parameter to the XCTest build script.
1 parent 824862a commit 4599128

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)