Add frontend option -disable-autolink-framework <framework>

This frontend option allows one to turn off autolinking to the
specified framework. This general capability is motivated by
rdar://problem/21246363, where we need to turn off some autolinking in
our overlays due to internal vs. public SDK differences.

Swift SVN r29393
This commit is contained in:
Doug Gregor
2015-06-15 23:43:33 +00:00
parent b034468ebb
commit c8e3438f32
5 changed files with 26 additions and 1 deletions

View File

@@ -1041,7 +1041,13 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Args.filtered_end())) {
Opts.VerifyTypeLayoutNames.push_back(A->getValue());
}
for (const Arg *A : make_range(Args.filtered_begin(
OPT_disable_autolink_framework),
Args.filtered_end())) {
Opts.DisableAutolinkFrameworks.push_back(A->getValue());
}
Opts.GenerateProfile |= Args.hasArg(OPT_profile_generate);
if (Args.hasArg(OPT_embed_bitcode))