diff options
author | Tom Rini <trini@konsulko.com> | 2022-12-04 10:03:32 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-23 10:07:03 -0500 |
commit | dc2c451a94e11e0b5ac006fd603b746632734d5c (patch) | |
tree | 071200d8b06437050655dfa20903fb2a569a2146 | |
parent | 991bc169518a000c8d559bac2c2e857bd1969a40 (diff) |
valgrind: Rework test for unsupported platforms
Change things so that on an unsupported platform we will #error rather
than undef the feature.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | include/valgrind/valgrind.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/valgrind/valgrind.h b/include/valgrind/valgrind.h index e59a7fde32..5d4fa5f43b 100644 --- a/include/valgrind/valgrind.h +++ b/include/valgrind/valgrind.h @@ -121,7 +121,9 @@ #else /* If we're not compiling for our target platform, don't generate any inline asms. */ -# undef CONFIG_VALGRIND +# if IS_ENABLED(CONFIG_VALGRIND) +# error "Unsupported platform for valgrind" +# endif #endif |