Skip to content

Commit

Permalink
[NFC][Clang][Test] Fix warning-as-error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mplatings committed Aug 9, 2023
1 parent e83e8e2 commit 872d22c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/Driver/arm-execute-only.c
Original file line number Diff line number Diff line change
@@ -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 | \
Expand Down

0 comments on commit 872d22c

Please sign in to comment.