mirror of https://github.com/thesofproject/sof.git
xtensa/CMakeLists.txt: split very long CFLAGS line
Will also make git commands (blame, merge, revert, rebase, cherry-pick,...) much less likely to fail. Also more readable and more obvious that -imacros is not nested. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
e3c68211c7
commit
5e11467ea5
|
@ -116,7 +116,17 @@ target_compile_options(sof_options INTERFACE ${stdlib_flag} -fno-inline-function
|
|||
|
||||
# No space between -imacros and its argument to avoid CMake
|
||||
# de-duplication "feature"
|
||||
target_compile_options(sof_options INTERFACE $<$<COMPILE_LANGUAGE:C>: -${optimization_flag} -g -Wall -Werror -Wl,-EL -Wmissing-prototypes -Wpointer-arith ${XTENSA_C_FLAGS}> -imacros${CONFIG_H_PATH})
|
||||
target_compile_options(sof_options INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:C>:
|
||||
-${optimization_flag} -g
|
||||
-Wall -Werror
|
||||
-Wl,-EL
|
||||
-Wmissing-prototypes
|
||||
-Wpointer-arith
|
||||
${XTENSA_C_FLAGS}
|
||||
>
|
||||
-imacros${CONFIG_H_PATH}
|
||||
)
|
||||
|
||||
if(BUILD_UNIT_TESTS)
|
||||
# rest of this file is not needed for unit tests
|
||||
|
|
Loading…
Reference in New Issue