Don't try to autolink the underlying module in a mixed-source framework.

Doing so causes the linker to list the framework itself as one of its
dependencies, which confuses tools that depend on the linker's dependency
output.

<rdar://problem/17006845>

Swift SVN r18578
This commit is contained in:
Jordan Rose
2014-05-22 23:50:38 +00:00
parent 607a5e89e5
commit 2d004856cf
6 changed files with 19 additions and 4 deletions

View File

@@ -855,6 +855,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.DisableLLVMARCOpts |= Args.hasArg(OPT_disable_llvm_arc_opts);
Opts.EnableDynamicValueTypeLayout |=
Args.hasArg(OPT_enable_dynamic_value_type_layout);
Opts.HasUnderlyingModule |= Args.hasArg(OPT_import_underlying_module);
if (Args.hasArg(OPT_autolink_force_load))
Opts.ForceLoadSymbolName = Args.getLastArgValue(OPT_module_link_name);