Test linux only for absolute paths in the -fuse-ld option
authorYuanfang Chen <yuanfang.chen@sony.com>
Thu, 1 Aug 2019 18:49:59 +0000 (18:49 +0000)
committerYuanfang Chen <yuanfang.chen@sony.com>
Thu, 1 Aug 2019 18:49:59 +0000 (18:49 +0000)
Some target do not use this option and may emit a error message for
using it.

llvm-svn: 367602

clang/test/Driver/fuse-ld.c

index b043ce624ed85960f76bdb089599a80554a5bcfd..4b2ec7b1bb2aed082511ecf1d780882d1ace7175 100644 (file)
@@ -1,5 +1,6 @@
 // RUN: %clang %s -### \
 // RUN:     -fuse-ld=/usr/local/bin/or1k-linux-ld 2>&1 \
+// RUN:     -target x86_64-unknown-linux \
 // RUN:   | FileCheck %s --check-prefix=CHECK-ABSOLUTE-LD
 // CHECK-ABSOLUTE-LD: /usr/local/bin/or1k-linux-ld