[Swift] Add version info to the documentation.

Add a documention note about which versions of Antlr require which versions
of Swift.
This commit is contained in:
Ewan Mellor 2018-11-14 23:04:46 -08:00
parent 8cd798431d
commit 19ac145081
No known key found for this signature in database
GPG Key ID: 7CE1C6BC9EC8645D
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# ANTLR4 Language Target, Runtime for Swift
## Requirements
ANTLR 4.7.2 requires Swift 4.2. It works on Swift 4.2.1 also.
ANTLR 4.7.1 requires Swift 4.0, and does not work on Swift 4.2. (The status of
Swift 4.1 support is unknown.)
## Performance Note
To use ANTLR4 Swift target in production environment, make sure to turn on compiler optimizations by following [these instructions](https://github.com/apple/swift-package-manager/blob/master/Documentation/Usage.md#build-configurations) if you use SwiftPM to build your project. If you are using Xcode to build your project, it's unlikely you will not use `release` build for production build.