You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,20 +31,23 @@ For local development you'll first need to download and install a recent [swift.
31
31
32
32
To generate an Xcode project that's set up correctly, run `build-script-helper.py`, passing the path to the downloaded toolchain via the `--toolchain` option, the tool's package name in the `--package-dir` option, and the `generate-xcodeproj` action:
If you have the [SwiftSyntax](https://github.com/apple/swift-syntax) and [SwiftPM](https://github.com/apple/swift-package-manager) repositories already checked out next to the stress tester's repository, you can omit the `--no-local-deps` option to use the existing checkouts instead of fetching the dependencies using SwiftPM.
37
+
36
38
This will generate `SourceKitStressTester/SourceKitStressTester.xcodeproj`. Open it and select the toolchain you installed from the Xcode > Toolchains menu, before building the `SourceKitStressTester-Package` scheme.
37
39
38
40
#### Via command line
39
41
40
-
To build, run `build-script-helper.py`, passing the path to the downloaded toolchain via the `--toolchain` option and the tool's package name in the `--package-dir` option:
42
+
To build, run `build-script-helper.py`, passing the path to the downloaded toolchain via the `--toolchain` option and the tool's package name in the `--package-dir` option.
If you have the [SwiftSyntax](https://github.com/apple/swift-syntax) and [SwiftPM](https://github.com/apple/swift-package-manager) repositories already checked out next to the stress tester's repository, you can omit the `--no-local-deps` option to use the existing checkouts instead of fetching the dependencies using SwiftPM.
44
47
45
48
To run the tests, repeat the above command, but additionally pass the `test` action:
parser.add_argument('--toolchain', required=True, help='the toolchain to use when building this package')
42
42
parser.add_argument('--update', action='store_true', help='update all SwiftPM dependencies')
43
+
parser.add_argument('--no-local-deps', action='store_true', help='use normal remote dependencies when building')
43
44
parser.add_argument('build_actions', help="Extra actions to perform. Can be any number of the following", choices=['all', 'build', 'test', 'install', 'generate-xcodeproj'], nargs="*", default=['build'])
44
45
45
46
parsed=parser.parse_args(args)
@@ -64,12 +65,18 @@ def run(args):
64
65
sourcekit_searchpath=args.sourcekitd_dir
65
66
package_name=os.path.basename(args.package_dir)
66
67
68
+
env=dict(os.environ)
69
+
# Use local dependencies (i.e. checked out next sourcekit-lsp).
70
+
ifnotargs.no_local_deps:
71
+
env['SWIFTCI_USE_LOCAL_DEPS'] ="1"
72
+
67
73
ifargs.update:
68
74
print("** Updating dependencies of %s **"%package_name)
0 commit comments