aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/prefixed-tools.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-01-26 21:56:28 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-01-26 21:56:28 +0000
commit34144f67610be0ac6cb0d85d77bd57662b9232b9 (patch)
treecea9ba845eb9295754751fb627aad8e6a6f3bc43 /test/Driver/prefixed-tools.c
parent8bef8238181a30e52dea380789a7e2d760eac532 (diff)
Keep track of the original target the user specified before
normalization. This used to be captured in DefaultTargetTriple and is used for the (optional) $triple-$tool lookup for cross-compilation. Do this properly by making it an attribute of the toolchain and use it in combination with the computed triple as index for the toolchain lookup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/prefixed-tools.c')
-rw-r--r--test/Driver/prefixed-tools.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Driver/prefixed-tools.c b/test/Driver/prefixed-tools.c
new file mode 100644
index 0000000000..1fc3d8f6a6
--- /dev/null
+++ b/test/Driver/prefixed-tools.c
@@ -0,0 +1,14 @@
+// RUN: env PATH=%s-helper %clang -no-integrated-as -target x86_64--linux %s -o - > %t.log
+// RUN: env PATH=%s-helper %clang -no-integrated-as -m32 -target x86_64--linux %s -o - >> %t.log
+// RUN: FileCheck -input-file %t.log %s
+
+// CHECK: x86_64--linux-as called
+// CHECK: x86_64--linux-ld called
+// CHECK: x86_64--linux-as called
+// CHECK: x86_64--linux-ld called
+
+int
+main(void)
+{
+ return 0;
+} \ No newline at end of file