mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
TBDGen: add a flag for embedding external symbols in emitted tbd file
Static-linked libraries could add symbols to the final tbd file. We need this flag to specify additional module names to collect symbols from. rdar://59399684
This commit is contained in:
@@ -1105,6 +1105,9 @@ static bool ParseTBDGenArgs(TBDGenOptions &Opts, ArgList &Args,
|
||||
if (const Arg *A = Args.getLastArg(OPT_previous_module_installname_map_file)) {
|
||||
Opts.ModuleInstallNameMapPath = A->getValue();
|
||||
}
|
||||
for (auto A : Args.getAllArgValues(OPT_embed_tbd_for_module)) {
|
||||
Opts.embedSymbolsFromModules.push_back(StringRef(A).str());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user