mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Allow one to separately specify the ABI name of a module.
Introduce a new compiler flag `-module-abi-name <name>` that uses the given name as the ABI name for the module (rather than the module's name in source code). The ABI name impacts name mangling and metadata.
This commit is contained in:
@@ -723,6 +723,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
|
||||
M.setImplicitDynamicEnabled();
|
||||
if (loadedModuleFile->hasIncrementalInfo())
|
||||
M.setHasIncrementalInfo();
|
||||
if (!loadedModuleFile->getModuleABIName().empty())
|
||||
M.setABIName(Ctx.getIdentifier(loadedModuleFile->getModuleABIName()));
|
||||
|
||||
auto diagLocOrInvalid = diagLoc.getValueOr(SourceLoc());
|
||||
loadInfo.status = loadedModuleFile->associateWithFileContext(
|
||||
|
||||
Reference in New Issue
Block a user