While compiling Swift 5.1.2 on Linux I have found the following issues and would like some clarification on whether this is a problem and if a bug should be filed.
swift-5.1-branch which Swift 5.1.2 should be built from is still versioned at
swift-5.1.2-RELEASE does not appear to be for any current branch on Github.
If we do a comparison between the
swift-5.1.1-RELEASE and the
swift-5.1.2-RELEASE tags - https://github.com/apple/swift/compare/swift-5.1.1-RELEASE...swift-5.1.2-RELEASE
we can find a commit - https://github.com/apple/swift/commit/71def56d1a423b9cbac069ffa6e0169e61c9cd9b where the
lib/Basic/Version.cpp has been hacked and
"Swift version " SWIFT_VERSION_STRING " (swift-5.1.2-RELEASE)"; has been hard coded.
This commit also does not exist in any current branch on Github.
In every other version of Swift the version has been set in the
CMakeLists.txt and 3 other files as in commit - https://github.com/apple/swift/commit/8332029dd6a278668753d4c5dac2de34987d6e10
When checking the version of Swift 5.1.1 using the official Swift.org release we get
Swift version 5.1.1 (swift-5.1.1-RELEASE) Target: x86_64-unknown-linux-gnu
But when checking Swift 5.1.2 using the official Swift.org release we get
Swift version 5.1 (swift-5.1.2-RELEASE) Target: x86_64-unknown-linux-gnu
The version is incorrectly displayed as
5.1, it should be