Skip to content

Commit b802f89

Browse files
authored
Merge pull request #543 from allevato/tooling-lib-doc-fix
Update `build-parser-lib` to `build-tooling-libs` in the developer docs.
2 parents e657dc0 + 997c82f commit b802f89

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Documentation/README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,28 @@ You can either copy `lib_InternalSwiftSyntaxParser.dylib/.so` directly from the
4545
```bash
4646
git clone https://github.com/apple/swift.git
4747
./swift/utils/update-checkout --clone
48-
./swift/utils/build-parser-lib --release --no-assertions --build-dir /tmp/parser-lib-build
48+
./swift/utils/build-tooling-libs --release --no-assertions --build-dir /tmp/tooling-libs-build
49+
```
50+
51+
If you see an error similar to the following:
52+
53+
```
54+
Outdated Swift compiler: building with host tools requires Swift 5.8 or
55+
newer. Please update your Swift toolchain or switch BOOTSTRAPPING_MODE to
56+
BOOTSTRAPPING(-WITH-HOSTLIBS)? or OFF.
57+
```
58+
59+
then you will need to build a newer compiler from source or download a more recent development snapshot from https://swift.org and pass its path to the script using the `--swiftc` flag:
60+
61+
```bash
62+
./swift/utils/build-tooling-libs --release --no-assertions --build-dir /tmp/tooling-libs-build --swiftc /path/to/newer/swiftc
4963
```
5064

5165
### Embedding in an iOS Application
5266

53-
You need to build `lib_InternalSwiftSyntaxParser.dylib` yourself, you cannot copy it from the toolchain. Follow the instructions above and change the invocation of `build-parser-lib` accordingly:
67+
You need to build `lib_InternalSwiftSyntaxParser.dylib` yourself, you cannot copy it from the toolchain. Follow the instructions above and change the invocation of `build-tooling-libs` accordingly:
5468

5569
```bash
56-
./swift/utils/build-parser-lib --release --no-assertions --build-dir /tmp/parser-lib-build-iossim --host iphonesimulator --architectures x86_64
57-
./swift/utils/build-parser-lib --release --no-assertions --build-dir /tmp/parser-lib-build-ios --host iphoneos --architectures arm64
70+
./swift/utils/build-tooling-libs --release --no-assertions --build-dir /tmp/tooling-libs-build-iossim --host iphonesimulator --architectures x86_64
71+
./swift/utils/build-tooling-libs --release --no-assertions --build-dir /tmp/tooling-libs-build-ios --host iphoneos --architectures arm64
5872
```

0 commit comments

Comments
 (0)