[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

@@ -13,14 +13,18 @@
// CHECK-FRONT: -emit-bc
// CHECK-FRONT: -frontend
// CHECK-FRONT: -c
// CHECK-FRONT: -embed-bitcode
// CHECK-FRONT: -embed-bitcode{{ }}
// CHECK-FRONT: -disable-llvm-optzns
// CHECK-FRONT: ld{{"? }}
// CHECK-FRONT: -bitcode_bundle
// RUN: %target-swiftc_driver -embed-bitcode-marker %s 2>&1 -### | FileCheck %s -check-prefix=CHECK-MARKER
// CHECK-MARKER: -frontend
// CHECK-MARKER: -c
// CHECK-MARKER: -embed-bitcode-marker
// CHECK-MARKER-NOT: -frontend
// CHECK-MARKER: ld{{"? }}
// CHECK-MARKER: -bitcode_bundle
// RUN: %target-swiftc_driver -embed-bitcode -Xcc -DDEBUG -Xllvm -fake-llvm-option -c -emit-module %s 2>&1 -### | FileCheck %s -check-prefix=CHECK-MODULE
// CHECK-MODULE: -frontend