]> granicus.if.org Git - clang/commitdiff
Fix test/Driver/riscv32-toolchain.c for builds setting CLANG_DEFAULT_LINKER
authorAlex Bradbury <asb@lowrisc.org>
Sat, 13 Jan 2018 09:21:11 +0000 (09:21 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Sat, 13 Jan 2018 09:21:11 +0000 (09:21 +0000)
Petr Hosek reported an external buildbot was failing on riscv32-toolchain.c,
seemingly as it set CLANG_DEFAULT_LINKER to lld. Address this by explicitly
setting -fuse-ld=ld in the tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322435 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/riscv32-toolchain.c

index e8974921564abab59f7a8c97c392a90aa1a940ae..efe550e0f29f974ae5b698f88cae095dc7026842 100644 (file)
@@ -4,7 +4,7 @@
 // CC1: clang{{.*}} "-cc1" "-triple" "riscv32"
 
 
-// RUN: %clang %s -### -no-canonical-prefixes \
+// RUN: %clang %s -### -no-canonical-prefixes -fuse-ld=ld \
 // RUN:   -target riscv32-linux-unknown-elf \
 // RUN:   --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \
 // RUN:   --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \
@@ -19,7 +19,7 @@
 // CC1-RV32-LINUX-ILP32: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/lib32/ilp32"
 // CC1-RV32-LINUX-ILP32: "-L{{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot/usr/lib32/ilp32"
 
-// RUN: %clang %s -### -no-canonical-prefixes \
+// RUN: %clang %s -### -no-canonical-prefixes -fuse-ld=ld \
 // RUN:   -target riscv32-linux-unknown-elf -march=rv32imafd -mabi=ilp32d \
 // RUN:   --gcc-toolchain=%S/Inputs/multilib_riscv_linux_sdk \
 // RUN:   --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \