mirror of https://github.com/thesofproject/sof.git
Arch: Host: Fix testbench xt build fail
This patch adds "-std=c99 -std=gnu99 -fgnu89-inline options" to host architecture build to prevent error with "scripts/rebuild-testbench -p tgl". src/audio/module_adapter/module_adapter.c: In function ‘module_adapter_reset’: src/audio/module_adapter/module_adapter.c:1582: error: ‘for’ loop initial declaration used outside C99 mode src/audio/module_adapter/module_adapter.c:1584: error: redefinition of ‘i’ Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
0bd8c3b070
commit
cada9501dd
|
@ -18,8 +18,9 @@ if (supports_implicit_fallthrough)
|
|||
endif()
|
||||
|
||||
# C & ASM flags
|
||||
target_compile_options(sof_options INTERFACE -g -O3 -fPIC -DPIC -Wall -Werror -Wmissing-prototypes
|
||||
${implicit_fallthrough} -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wpointer-arith
|
||||
target_compile_options(sof_options INTERFACE -g -O3 -fPIC -DPIC -std=c99 -std=gnu99 -fgnu89-inline
|
||||
-Wall -Werror -Wmissing-prototypes ${implicit_fallthrough} -Wno-pointer-to-int-cast
|
||||
-Wno-int-to-pointer-cast -Wpointer-arith
|
||||
-DCONFIG_LIBRARY "-imacros${CONFIG_H_PATH}")
|
||||
|
||||
if(NOT BUILD_UNIT_TESTS_HOST)
|
||||
|
|
Loading…
Reference in New Issue