mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adding getSwiftRevision(). This is to aid cleaning up some lldb code that could use this API.
This commit is contained in:
@@ -406,6 +406,14 @@ std::string getSwiftFullVersion(Version effectiveVersion) {
|
||||
return OS.str();
|
||||
}
|
||||
|
||||
std::string getSwiftRevision() {
|
||||
#ifdef SWIFT_REVISION
|
||||
return SWIFT_REVISION;
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
}
|
||||
|
||||
} // end namespace version
|
||||
} // end namespace swift
|
||||
|
||||
|
||||
Reference in New Issue
Block a user