Merge pull request #44077 from antmicro:riscv_zephyr-fix_build_process
PiperOrigin-RevId: 337608834 Change-Id: If799cc73ac6a4c670b06d397a5511d3963100258
This commit is contained in:
commit
b6d6583961
@ -2,13 +2,11 @@ cmake_minimum_required(VERSION 3.13.1)
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(tf_lite_magic_wand)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} %{CXX_FLAGS}%")
|
||||
# -fno-threadsafe-statics -- disables the mutex around initialization of local static variables
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} %{CXX_FLAGS}% -fno-threadsafe-statics -Wno-sign-compare -Wno-narrowing")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} %{CC_FLAGS}%")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "%{LINKER_FLAGS}%")
|
||||
|
||||
# -fno-threadsafe-statics -- disables the mutex around initialization of local static variables
|
||||
target_compile_options(app PRIVATE "-fno-threadsafe-statics")
|
||||
|
||||
target_sources(app PRIVATE
|
||||
%{SRCS}%
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user