2017-09-20 23:22:27 +08:00
|
|
|
// REQUIRES: shell
|
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
|
2020-09-04 02:20:29 +08:00
|
|
|
// RUN: rm -rf %t && mkdir %t
|
|
|
|
// RUN: ln -s %clang %t/i386-clang
|
2017-09-20 23:22:27 +08:00
|
|
|
|
|
|
|
// Check if invocation of "foo-clang" adds option "-target foo".
|
|
|
|
//
|
2020-09-04 02:20:29 +08:00
|
|
|
// RUN: %t/i386-clang -c -no-canonical-prefixes %s -### 2>&1 | FileCheck -check-prefix CHECK-TG1 %s
|
2017-09-20 23:22:27 +08:00
|
|
|
// CHECK-TG1: Target: i386
|
|
|
|
|
|
|
|
// Check if invocation of "foo-clang -target bar" overrides option "-target foo".
|
|
|
|
//
|
2020-09-04 02:20:29 +08:00
|
|
|
// RUN: %t/i386-clang -c -no-canonical-prefixes -target x86_64 %s -### 2>&1 | FileCheck -check-prefix CHECK-TG2 %s
|
2017-09-20 23:22:27 +08:00
|
|
|
// CHECK-TG2: Target: x86_64
|