Skip to content

Commit 794bb66

Browse files
committed
[bootstrap] Preemptively add argument for Foundation
swiftlang/swift-corelibs-xctest#43 will add a dependency between swift-corelibs-xctest and swift-corelibs-foundation. This will necessitate the path to a Foundation build be passed to the SwiftPM bootstrap script. In order to prevent CI from breaking, we'll modify the Swift build script to pass the correct parameters *before* those parameters are actually used. To do that, this commit ensures the bootstrap script accepts the new parameter: "--foundation".
1 parent c3e97ac commit 794bb66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Utilities/bootstrap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ def main():
449449
default="/usr/local", metavar="PATH")
450450
parser.add_argument("-v", "--verbose", action="store_true",
451451
help="use verbose output")
452+
parser.add_argument("--foundation", dest="foundation_path",
453+
help="Path to Foundation build directory")
452454
parser.add_argument("--xctest", dest="xctest_path",
453455
help="Path to XCTest build directory")
454456
parser.add_argument("--build-tests", action="store_true",

0 commit comments

Comments
 (0)