mirror of https://github.com/thesofproject/sof.git
audio: zephyr: add -fno-inline-functions option to zephyr code
By enable/disable COMPILER_INLINE_FUNCTION_OPTION to control add or remove -fno-inline-functions build option for sof zephyr code. Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
This commit is contained in:
parent
51556ddd63
commit
05dcf1ccde
|
@ -799,8 +799,9 @@ set(VERSION_H_PATH ${GENERATED_DIRECTORY}/sof_versions.h)
|
|||
find_package(Python3 COMPONENTS Interpreter)
|
||||
set(PYTHON3 "${Python3_EXECUTABLE}")
|
||||
|
||||
# We don't know why we have this https://github.com/thesofproject/sof/issues/5212
|
||||
if (NOT CONFIG_COMPILER_INLINE_FUNCTION_OPTION)
|
||||
target_compile_options(SOF INTERFACE -fno-inline-functions)
|
||||
endif()
|
||||
|
||||
# SOF needs `typeof`, `__VA_ARGS__` and maybe other GNU C99
|
||||
# extensions. TODO other flags required ?
|
||||
|
|
Loading…
Reference in New Issue