From 2e989bf8734436a720040d4ed3b6a02c264bdaf3 Mon Sep 17 00:00:00 2001 From: Roger Ferrer Ibanez Date: Wed, 12 Sep 2018 15:55:14 +0000 Subject: [PATCH] [RISCV] Explicitly set an empty --sysroot in the test In rL341655 we added additional behaviour to the Driver for riscv32-unknown-elf when the sysroot is empty. The new tests that check the new behaviour expect that the absence of --sysroot in the command-line implies that the sysroot empty. This doesn't hold if clang is built with a non-empty DEFAULT_SYSROOT in cmake. When this is the case, this test fails. Since the new behaviour is triggered when the sysroot is empty, pass an empty --sysroot to avoid using the default (if any). Differential Revision: https://reviews.llvm.org/D51972 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342060 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/riscv32-toolchain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Driver/riscv32-toolchain.c b/test/Driver/riscv32-toolchain.c index b80753ea0d..9e8af3a8ff 100644 --- a/test/Driver/riscv32-toolchain.c +++ b/test/Driver/riscv32-toolchain.c @@ -21,6 +21,7 @@ // RUN: %clang %s -### -no-canonical-prefixes \ // RUN: -target riscv32-unknown-elf \ +// RUN: --sysroot= \ // RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree 2>&1 \ // RUN: | FileCheck -check-prefix=C-RV32-BAREMETAL-NOSYSROOT-ILP32 %s @@ -52,6 +53,7 @@ // RUN: %clangxx %s -### -no-canonical-prefixes \ // RUN: -target riscv32-unknown-elf -stdlib=libstdc++ \ +// RUN: --sysroot= \ // RUN: --gcc-toolchain=%S/Inputs/basic_riscv32_tree 2>&1 \ // RUN: | FileCheck -check-prefix=CXX-RV32-BAREMETAL-NOSYSROOT-ILP32 %s -- 2.50.1