Skip to content

Commit dec198d

Browse files
committed
Revert "[PackageSyntax] Run the bootstrap script without PackageSyntax if SwiftSyntax isn't checked out or --skip-package-syntax is passed"
This reverts commit 6f0a920.
1 parent 6f0a920 commit dec198d

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

Utilities/bootstrap

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import platform
2323
import re
2424
import shutil
2525
import subprocess
26-
from helpers import note, warning, error, symlink_force, mkdir_p, call, call_output
26+
from helpers import note, error, symlink_force, mkdir_p, call, call_output
2727

2828
g_macos_deployment_target = '10.15'
2929

@@ -144,10 +144,6 @@ def add_build_args(parser):
144144
dest="cross_compile_hosts",
145145
help="List of cross compile hosts targets.",
146146
default=[])
147-
parser.add_argument(
148-
"--skip-package-syntax",
149-
action="store_true",
150-
help="Build the second stage without PackageSyntax support.")
151147

152148
def add_test_args(parser):
153149
"""Configures the parser with the arguments necessary for the test action."""
@@ -177,7 +173,6 @@ def parse_global_args(args):
177173
args.swift_argument_parser_source_dir = os.path.join(args.project_root, "..", "swift-argument-parser")
178174
args.swift_driver_source_dir = os.path.join(args.project_root, "..", "swift-driver")
179175
args.swift_crypto_source_dir = os.path.join(args.project_root, "..", "swift-crypto")
180-
args.swift_syntax_source_dir = os.path.join(args.project_root, "..", "swift-syntax")
181176
args.source_root = os.path.join(args.project_root, "Sources")
182177

183178
if platform.system() == 'Darwin':
@@ -728,13 +723,6 @@ def get_swiftpm_env_cmd(args):
728723
if args.llbuild_link_framework:
729724
env_cmd.append("SWIFTPM_LLBUILD_FWK=1")
730725
env_cmd.append("SWIFTCI_USE_LOCAL_DEPS=1")
731-
732-
# Build package editor support if swift-syntax is checked out.
733-
if os.path.exists(args.swift_syntax_source_dir) and not args.skip_package_syntax:
734-
env_cmd.append("SPM_BUILD_PACKAGE_SYNTAX=1")
735-
elif not args.skip_package_syntax:
736-
warning("Skipping build of PackageSyntax because no SwiftSyntax checkout was found")
737-
738726
env_cmd.append("SWIFTPM_MACOS_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target)
739727

740728
if args.bootstrap:

Utilities/helpers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ def note(message):
1919
print("--- %s: note: %s" % (os.path.basename(sys.argv[0]), message))
2020
sys.stdout.flush()
2121

22-
def warning(message):
23-
print("--- %s: warning: %s" % (os.path.basename(sys.argv[0]), message))
24-
sys.stdout.flush()
25-
2622
def error(message):
2723
print("--- %s: error: %s" % (os.path.basename(sys.argv[0]), message))
2824
sys.stdout.flush()

0 commit comments

Comments
 (0)