Skip to content

Commit

Permalink
Tools: tplg_parser: Remove -Wl,-EL to avoid build fail with xt-clang
Browse files Browse the repository at this point in the history
The linker option to indicate little-endian is not needed. It causes
build fail:

clang-10: errorclang-10: : -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
error: -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: clang-10error: : error: -Wl,-EL: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
-Wl,-EL: 'linker' input unused [-Werror,-Wunused-command-line-argument]
gmake[5]: *** [CMakeFiles/sof_tplg_parser.dir/build.make:90:
CMakeFiles/sof_tplg_parser.dir/process.c.o] Error 1

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu committed Oct 25, 2023
1 parent 783b075 commit ca286bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tplg_parser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ endif()

# TODO: add IPC4 option when it's ready.
target_compile_options(sof_tplg_parser PRIVATE
-g -O -Wall -Werror -Wl,-EL -fPIC -DPIC
-g -O -Wall -Werror -fPIC -DPIC
-Wmissing-prototypes ${implicit_fallthrough}
-DCONFIG_LIBRARY -D${tplg_ipc})

Expand Down

0 comments on commit ca286bc

Please sign in to comment.