2016-03-01 09:07:58 +08:00
|
|
|
// RUN: %clang -ccc-print-bindings -c %s -fembed-bitcode 2>&1 | FileCheck %s
|
|
|
|
// CHECK: clang
|
|
|
|
// CHECK: clang
|
|
|
|
|
2016-03-02 01:15:11 +08:00
|
|
|
// RUN: %clang %s -c -fembed-bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-CC
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-CC: -cc1
|
|
|
|
// CHECK-CC: -emit-llvm-bc
|
|
|
|
// CHECK-CC: -cc1
|
|
|
|
// CHECK-CC: -emit-obj
|
2016-05-12 00:26:03 +08:00
|
|
|
// CHECK-CC: -fembed-bitcode=all
|
2016-03-01 09:07:58 +08:00
|
|
|
|
2016-05-12 00:26:03 +08:00
|
|
|
// RUN: %clang %s -c -fembed-bitcode=bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-BITCODE
|
|
|
|
// CHECK-BITCODE: -cc1
|
|
|
|
// CHECK-BITCODE: -emit-llvm-bc
|
|
|
|
// CHECK-BITCODE: -cc1
|
|
|
|
// CHECK-BITCODE: -emit-obj
|
|
|
|
// CHECK-BITCODE: -fembed-bitcode=bitcode
|
|
|
|
//
|
2016-03-02 05:57:22 +08:00
|
|
|
// RUN: %clang %s -c -save-temps -fembed-bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-SAVE-TEMP
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-SAVE-TEMP: -cc1
|
|
|
|
// CHECK-SAVE-TEMP: -E
|
|
|
|
// CHECK-SAVE-TEMP: -cc1
|
|
|
|
// CHECK-SAVE-TEMP: -emit-llvm-bc
|
|
|
|
// CHECK-SAVE-TEMP: -cc1
|
|
|
|
// CHECK-SAVE-TEMP: -S
|
2016-05-12 00:26:03 +08:00
|
|
|
// CHECK-SAVE-TEMP: -fembed-bitcode=all
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-SAVE-TEMP: -cc1as
|
|
|
|
|
|
|
|
// RUN: %clang -c %s -flto -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
|
2016-05-19 01:04:52 +08:00
|
|
|
// RUN: %clang -c %s -flto=full -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
|
|
|
|
// RUN: %clang -c %s -flto=thin -fembed-bitcode 2>&1 -### | FileCheck %s -check-prefix=CHECK-LTO
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-LTO: -cc1
|
|
|
|
// CHECK-LTO: -emit-llvm-bc
|
|
|
|
// CHECK-LTO-NOT: warning: argument unused during compilation: '-fembed-bitcode'
|
|
|
|
// CHECK-LTO-NOT: -cc1
|
2016-05-12 00:26:03 +08:00
|
|
|
// CHECK-LTO-NOT: -fembed-bitcode=all
|
2016-03-01 09:07:58 +08:00
|
|
|
|
2016-03-02 01:15:11 +08:00
|
|
|
// RUN: %clang -c %s -fembed-bitcode-marker -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-MARKER
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-MARKER: -cc1
|
|
|
|
// CHECK-MARKER: -emit-obj
|
2016-05-12 00:26:03 +08:00
|
|
|
// CHECK-MARKER: -fembed-bitcode=marker
|
2016-03-01 09:07:58 +08:00
|
|
|
// CHECK-MARKER-NOT: -cc1
|
|
|
|
|
2016-11-16 14:06:44 +08:00
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=6.0 %s -fembed-bitcode=all -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-LINKER
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=6.0 %s -fembed-bitcode=marker -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-LINKER
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=6.0 %s -flto=full -fembed-bitcode=bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-LINKER
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=6.0 %s -flto=thin -fembed-bitcode=bitcode -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-LINKER
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=6.0 %s -fembed-bitcode=off -fintegrated-as 2>&1 -### | FileCheck %s -check-prefix=CHECK-NO-LINKER
|
|
|
|
// CHECK-LINKER: ld
|
|
|
|
// CHECK-LINKER: -bitcode_bundle
|
|
|
|
// CHECK-NO-LINKER-NOT: -bitcode_bundle
|
|
|
|
|
|
|
|
// RUN: %clang -target armv7-apple-darwin -miphoneos-version-min=5.0 %s -fembed-bitcode -### 2>&1 | \
|
2017-01-20 10:12:22 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=CHECK-PLATFORM-NOTSUPPORTED
|
|
|
|
// CHECK-PLATFORM-NOTSUPPORTED: -fembed-bitcode is not supported on versions of iOS prior to 6.0
|