[bitcode] Pass -bitcode_bundle to the linker when linking via swiftc.

...and either -embed-bitcode or -embed-bitcode-marker is passed. This is
the same behavior as Clang.

rdar://problem/20246442

Swift SVN r29387
This commit is contained in:
Jordan Rose
2015-06-15 20:57:38 +00:00
parent 6b59ff8dc5
commit e40dc7fc7a
2 changed files with 10 additions and 1 deletions

View File

@@ -715,6 +715,11 @@ Job *darwin::Linker::constructJob(const JobAction &JA,
Arguments.push_back("-application_extension");
}
if (Args.hasArg(options::OPT_embed_bitcode,
options::OPT_embed_bitcode_marker)) {
Arguments.push_back("-bitcode_bundle");
}
if (!OI.SDKPath.empty()) {
Arguments.push_back("-syslibroot");
Arguments.push_back(Args.MakeArgString(OI.SDKPath));