[Frontend/Serialization] Narrow -swift-compiler-version to -interface-compiler-version

It might be unexpected to future users that `-swift-compiler-version`
would produce a version aligned to .swiftinterface instead of one used
to build the .swiftmodule file. To avoid this possible confusion, let's
scope down the version to `-interface-compiler-version` flag and
`SWIFT_INTERFACE_COMPILER_VERSION` option in the module.
This commit is contained in:
Pavel Yaskevich
2024-10-28 11:19:14 -07:00
parent 83995f2ae0
commit 84a62fc170
18 changed files with 55 additions and 58 deletions

View File

@@ -124,7 +124,7 @@ 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("-interface-compiler-version");
ignorableFlags.push_back(version::getCompilerVersion());
if (!ignorableFlags.empty()) {