Merge pull request #41431 from compnerd/externally-consumed-internally

IRGen: internalize symbols with `-static`
This commit is contained in:
Saleem Abdulrasool
2022-02-21 09:12:11 -08:00
committed by GitHub
9 changed files with 102 additions and 10 deletions

View File

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