[embedded] Add an experimental -Xfrontend -mergeable-symbols to allow linking multiple .o modules in Embedded Swift

This commit is contained in:
Kuba Mracek
2025-02-08 11:54:26 -08:00
parent c95c45201e
commit b2f87e7614
8 changed files with 71 additions and 7 deletions

View File

@@ -3551,6 +3551,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.InternalizeSymbols = FrontendOpts.Static;
if (Args.hasArg(OPT_mergeable_symbols)) {
Opts.MergeableSymbols = true;
}
if (Args.hasArg(OPT_disable_preallocated_instantiation_caches)) {
Opts.NoPreallocatedInstantiationCaches = true;
}