mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Always print current compiler version in swiftinterface flags
Swiftinterface files are always built with "current" compiler version, which means that `-swift-compiler-version` has no effect in this context.
This commit is contained in:
@@ -124,6 +124,9 @@ static void printToolVersionAndFlagsComment(raw_ostream &out,
|
||||
!Opts.PackageFlags.IgnorableFlags.empty())
|
||||
ignorableFlags.push_back(Opts.PackageFlags.IgnorableFlags);
|
||||
|
||||
ignorableFlags.push_back("-swift-compiler-version");
|
||||
ignorableFlags.push_back(version::getCompilerVersion());
|
||||
|
||||
if (!ignorableFlags.empty()) {
|
||||
out << "// " SWIFT_MODULE_FLAGS_IGNORABLE_KEY ": ";
|
||||
llvm::interleave(
|
||||
|
||||
Reference in New Issue
Block a user