Skip to content

Commit 9e8e088

Browse files
committed
[build-script] Add a flag to use normal swiftpm dependencies
Handy for local development if you don't want to test with swift's full build.
1 parent fe7f6cf commit 9e8e088

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def add_common_args(parser):
7878
parser.add_argument('--ninja-bin', metavar='PATH', help='ninja binary to use for testing')
7979
parser.add_argument('--build-path', metavar='PATH', default='.build', help='build in the given path')
8080
parser.add_argument('--configuration', '-c', default='debug', help='build using configuration (release|debug)')
81+
parser.add_argument('--no-local-deps', action='store_true', help='use normal remote dependencies when building')
8182
parser.add_argument('--verbose', '-v', action='store_true', help='enable verbose output')
8283

8384
subparsers = parser.add_subparsers(title='subcommands', dest='action', metavar='action')
@@ -108,7 +109,8 @@ def add_common_args(parser):
108109
# Set the toolchain used in tests at runtime
109110
env['SOURCEKIT_TOOLCHAIN_PATH'] = args.toolchain
110111
# Use local dependencies (i.e. checked out next sourcekit-lsp).
111-
env['SWIFTCI_USE_LOCAL_DEPS'] = "1"
112+
if not args.no_local_deps:
113+
env['SWIFTCI_USE_LOCAL_DEPS'] = "1"
112114

113115
if args.ninja_bin:
114116
env['NINJA_BIN'] = args.ninja_bin

0 commit comments

Comments
 (0)