Skip to content

Commit 1c3db5e

Browse files
committed
Add --release flag for bootstrap script
1 parent ca9b5fc commit 1c3db5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Utilities/bootstrap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ def main():
534534
help="Path to Foundation build directory")
535535
parser.add_argument("--xctest", dest="xctest_path",
536536
help="Path to XCTest build directory")
537+
parser.add_argument("--release", action="store_true",
538+
help="Build stage 2 for release")
537539
args = parser.parse_args()
538540

539541
if not args.swiftc_path:
@@ -638,6 +640,9 @@ def main():
638640
cmd.extend(["-Xswiftc", "-I{}".format(args.foundation_path)])
639641
cmd.extend(["-Xswiftc", "-I{}".format(core_foundation_path)])
640642

643+
if args.release:
644+
cmd.extend(["--configuration", "release"])
645+
641646
cmd = env_cmd + cmd
642647

643648
note("building self-hosted 'swift-build': %s" % (
@@ -648,7 +653,6 @@ def main():
648653

649654
swift_build_path = os.path.join(build_path, "debug", "swift-build")
650655
swift_test_path = os.path.join(build_path, "debug", "swift-test")
651-
note("built: %s" % (swift_build_path,))
652656

653657
# If testing, run each of the test bundles.
654658
if "test" in build_actions:

0 commit comments

Comments
 (0)