mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Drop package-name if needed in SaveModuleInterfaceArgs
This commit is contained in:
@@ -90,6 +90,13 @@ static void printToolVersionAndFlagsComment(raw_ostream &out,
|
||||
out << "// " SWIFT_MODULE_FLAGS_KEY ": "
|
||||
<< flagsStr;
|
||||
|
||||
// Adding package-name can be disabled in non-package
|
||||
// swiftinterfaces; add only to package.swiftinterface
|
||||
// in such case.
|
||||
if (Opts.printPackageInterface() &&
|
||||
!Opts.FlagsForPackageOnly.empty())
|
||||
out << " " << Opts.FlagsForPackageOnly;
|
||||
|
||||
// Insert additional -module-alias flags
|
||||
if (Opts.AliasModuleNames) {
|
||||
StringRef moduleName = M->getNameStr();
|
||||
|
||||
Reference in New Issue
Block a user