mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user