From e69d5934b0406d5147e846d4f6bee25e48e0ab07 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Wed, 25 Oct 2023 17:01:02 +0300 Subject: [PATCH] Tools: Testbench: Remove -Wl,-EL to avoid build fail with xt-clang The linker option to indicate little endian is unused and the warning causes build fail: clang-10clang-10: : errorerror: : -Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument]-Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument] clang-10: error: -Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument] clang-10: error: -Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument] gmake[2]: *** [CMakeFiles/testbench.dir/build.make:76: CMakeFiles/testbench.dir/testbench.c.o] Error 1 Signed-off-by: Seppo Ingalsuo --- tools/testbench/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testbench/CMakeLists.txt b/tools/testbench/CMakeLists.txt index 3d4e622c08bf..76a3716571ee 100644 --- a/tools/testbench/CMakeLists.txt +++ b/tools/testbench/CMakeLists.txt @@ -41,7 +41,7 @@ if (supports_implicit_fallthrough) set(implicit_fallthrough -Wimplicit-fallthrough) endif() -target_compile_options(testbench PRIVATE -g -O3 -Wall -Werror -Wl,-EL -Wmissing-prototypes +target_compile_options(testbench PRIVATE -g -O3 -Wall -Werror -Wmissing-prototypes ${implicit_fallthrough} -DCONFIG_LIBRARY -DCONFIG_LIBRARY_STATIC -imacros${config_h}) target_link_libraries(testbench PRIVATE -lm)