2012-10-31 20:01:53 +08:00
|
|
|
// Check -B driver option.
|
|
|
|
//
|
|
|
|
// RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
|
|
|
|
// RUN: -B %S/Inputs/B_opt_tree/dir1 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-B-OPT-TRIPLE %s
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK-B-OPT-TRIPLE: "{{.*}}/Inputs/B_opt_tree/dir1{{/|\\\\}}i386-unknown-linux-ld"
|
2012-10-31 20:01:53 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
|
|
|
|
// RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-B-OPT-DIR %s
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK-B-OPT-DIR: "{{.*}}/Inputs/B_opt_tree/dir2{{/|\\\\}}ld"
|
2012-10-31 20:01:53 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
|
|
|
|
// RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-B-OPT-PREFIX %s
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK-B-OPT-PREFIX: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld"
|
2012-10-31 20:01:53 +08:00
|
|
|
//
|
|
|
|
// RUN: %clang %s -### -o %t.o -target i386-unknown-linux \
|
|
|
|
// RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- \
|
|
|
|
// RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-B-OPT-MULT %s
|
2014-08-06 06:39:07 +08:00
|
|
|
// CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld"
|