diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-01-30 12:25:35 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-01-30 12:25:35 +0000 |
commit | e29cdebb4b9bb435d58aec5da844f46cf78cfbe2 (patch) | |
tree | ca943ec7d0914185866cd699ff268ee048b4f202 /test/Driver/target.c | |
parent | 30c5f1444d0c46c32dbb50820469d12fa89d7b53 (diff) |
Fix yet another issue introduced when renaming '-ccc-host-triple' to
'-target'. The original flag was part of a flag group that marked it as
driver-only. The new flag didn't ever get equivalent treatment. This
caused the '-target' flag to get passed down to any raw GCC invocation.
Marking it as a driver option fixes this and PR11875.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/target.c')
-rw-r--r-- | test/Driver/target.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Driver/target.c b/test/Driver/target.c new file mode 100644 index 0000000000..09f1a9b021 --- /dev/null +++ b/test/Driver/target.c @@ -0,0 +1,11 @@ +// RUN: %clang -no-canonical-prefixes -target unknown-unknown-unknown -c %s \ +// RUN: -o %t.o -### 2>&1 | FileCheck %s +// +// Ensure we get a crazy triple here as we asked for one. +// CHECK: Target: unknown-unknown-unknown +// +// Also, ensure we don't blindly hand our target selection logic down to GCC. +// CHECK: "{{.*}}gcc" +// CHECK-NOT: "-target" +// CHECK-NOT: "unknown-unknown-unknown" +// CHECK: "-x" "assembler" |