File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Alternatively you can also build it from the command line using `build-script.py
14
14
- (enclosing directory)
15
15
- swift-argument-parser
16
16
- swift-syntax
17
+ ```
17
18
2. Execute the following command
18
19
```bash
19
20
swift-syntax/build-script.py build --toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-<recent date>.xctoolchain/usr
@@ -62,15 +63,15 @@ Tip: Running SwiftSyntax’s self-parse tests takes the majority of testing time
62
63
2 . Select the Arguments tab in the Run section
63
64
3 . Add a ` SKIP_LONG_TESTS ` environment variable with value ` 1 `
64
65
65
- ### ` lit ` -based tests
66
+ ### ` lit ` -based Tests
66
67
67
68
A few tests are based LLVM’s ` lit ` and ` FileCheck ` tools.
68
69
To run these, build ` FileCheck ` , e.g. by building the Swift compiler and run the tests using the following command:
69
70
``` bash
70
71
./build-script.py test --toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-< recent date> .xctoolchain/usr --skip-lit-tests --filecheck-exec /path/to/build/Release+Asserts/llvm-macosx-x86_64/bin/FileCheck
71
72
```
72
73
73
- ## Generating source code
74
+ ## Generating Source Code
74
75
75
76
If you want to modify the code-generated files, perform the following steps:
76
77
@@ -86,3 +87,7 @@ If you want to modify the code-generated files, perform the following steps:
86
87
swift-syntax/build-script.py generate-source-code --toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-<recent date>.xctoolchain/usr
87
88
```
88
89
3. The new source-generated file will be written into your `Sources` directory.
90
+
91
+ ## Swift Version
92
+
93
+ We require that SwiftSyntax builds with the latest released compiler and the previous major version (e.g. with Swift 5.8 and Swift 5.7).
You can’t perform that action at this time.
0 commit comments