diff options
author | Alex Bradbury <asb@lowrisc.org> | 2018-01-11 15:38:01 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2018-01-11 15:38:01 +0000 |
commit | 0acf13f6590ca80269958451e3aa10c05f1cd32d (patch) | |
tree | 830bf439633f179b4d77ee4a33caa8fbe5df999c | |
parent | 738e6e7cb0255cf9240b5d014072343adedde313 (diff) | |
download | bcm5719-llvm-0acf13f6590ca80269958451e3aa10c05f1cd32d.tar.gz bcm5719-llvm-0acf13f6590ca80269958451e3aa10c05f1cd32d.zip |
[Driver][RISCV] Fix r322276 for Windows (path separator issue)
We were seeing test failures of riscv32-toolchain.c on windows due to the \
path separator being used for the linker. Add {{/|\\\\}} pattern (made
horrible due to escaping), just like introduced in r214931.
llvm-svn: 322286
-rw-r--r-- | clang/test/Driver/riscv32-toolchain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/riscv32-toolchain.c b/clang/test/Driver/riscv32-toolchain.c index 62985b6127b..8486dccae21 100644 --- a/clang/test/Driver/riscv32-toolchain.c +++ b/clang/test/Driver/riscv32-toolchain.c @@ -10,7 +10,7 @@ // RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \ // RUN: | FileCheck -check-prefix=CC1-RV32-LINUX-ILP32 %s -// CC1-RV32-LINUX-ILP32: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld" +// CC1-RV32-LINUX-ILP32: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|\\\\}}ld" // CC1-RV32-LINUX-ILP32: "--sysroot={{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot" // CC1-RV32-LINUX-ILP32: "-m" "elf32lriscv" // CC1-RV32-LINUX-ILP32: "-dynamic-linker" "/lib/ld-linux-riscv32-ilp32.so.1" @@ -25,7 +25,7 @@ // RUN: --sysroot=%S/Inputs/multilib_riscv_linux_sdk/sysroot 2>&1 \ // RUN: | FileCheck -check-prefix=CC1-RV32-LINUX-ILP32D %s -// CC1-RV32-LINUX-ILP32D: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld" +// CC1-RV32-LINUX-ILP32D: "{{.*}}/Inputs/multilib_riscv_linux_sdk/lib/gcc/riscv64-unknown-linux-gnu/7.2.0/../../../../riscv64-unknown-linux-gnu/bin{{/|\\\\}}ld" // CC1-RV32-LINUX-ILP32D: "--sysroot={{.*}}/Inputs/multilib_riscv_linux_sdk/sysroot" // CC1-RV32-LINUX-ILP32D: "-m" "elf32lriscv" // CC1-RV32-LINUX-ILP32D: "-dynamic-linker" "/lib/ld-linux-riscv32-ilp32d.so.1" |