Drop package-name if needed in SaveModuleInterfaceArgs

This commit is contained in:
Ellie Shin
2024-06-28 20:24:28 -07:00
parent e5b4655108
commit ea8a05399f
4 changed files with 38 additions and 7 deletions

View File

@@ -47,6 +47,11 @@ struct ModuleInterfaceOptions {
/// back .swiftinterface and reconstructing .swiftmodule.
std::string Flags;
/// Keep track of flags to be printed in package.swiftinterface only.
/// If -disable-print-package-name-for-non-package-interface is passed,
/// package-name flag should only be printed in package.swiftinterface.
std::string FlagsForPackageOnly;
/// Flags that should be emitted to the .swiftinterface file but are OK to be
/// ignored by the earlier version of the compiler.
std::string IgnorableFlags;