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