[clang] 872d22c - [NFC][Clang][Test] Fix warning-as-error

Michael Platings via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 9 13:31:12 PDT 2023


Author: Michael Platings
Date: 2023-08-09T21:29:53+01:00
New Revision: 872d22c735b83d39cbd7660e4678a9c0d42fe36a

URL: https://github.com/llvm/llvm-project/commit/872d22c735b83d39cbd7660e4678a9c0d42fe36a
DIFF: https://github.com/llvm/llvm-project/commit/872d22c735b83d39cbd7660e4678a9c0d42fe36a.diff

LOG: [NFC][Clang][Test] Fix warning-as-error

Since D149444 this test has been failing with -Wmissing-multilib if
multilib is configured for the BareMetal toolchain.
By setting sysroot the test is more hermetic and the failure is avoided.

Added: 
    

Modified: 
    clang/test/Driver/arm-execute-only.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/arm-execute-only.c b/clang/test/Driver/arm-execute-only.c
index 3c3af5fd690db4..1b2fad7299484a 100644
--- a/clang/test/Driver/arm-execute-only.c
+++ b/clang/test/Driver/arm-execute-only.c
@@ -1,4 +1,4 @@
-// RUN: %clang -c -fdriver-only -Werror --target=arm-arm-none-eabi \
+// RUN: %clang --sysroot=%S/Inputs -c -fdriver-only -Werror --target=arm-arm-none-eabi \
 // RUN:   -march=armv6-m -mexecute-only %s 2>&1 | count 0
 
 // RUN: not %clang -### -c --target=arm-arm-none-eabi -march=armv6 -mexecute-only %s 2>&1 |    \


        


More information about the cfe-commits mailing list