Merge pull request #79242 from kubamracek/embedded-mergeable-symbols

[embedded] Add an experimental -Xfrontend -mergeable-symbols to allow linking multiple .o modules in Embedded Swift
This commit is contained in:
Kuba (Brecka) Mracek
2025-02-10 15:17:05 -08:00
committed by GitHub
8 changed files with 71 additions and 7 deletions

View File

@@ -3553,6 +3553,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;
}