samples: tensorflow: add no-threadsafe-statics to compiler flags
Adds no-threadsafe-statics to compiler flags for gcc and arcmwdt. The flag is required to compile the samples - the module can compile without it. Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
This commit is contained in:
parent
468c553190
commit
e6b8c50599
5 changed files with 19 additions and 4 deletions
|
@ -177,6 +177,9 @@ set_compiler_property(PROPERTY sanitize_address -fsanitize=address)
|
|||
|
||||
set_compiler_property(PROPERTY sanitize_undefined -fsanitize=undefined)
|
||||
|
||||
# GCC compiler flag for turning off thread-safe initialization of local statics
|
||||
set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe-statics")
|
||||
|
||||
# Required ASM flags when using gcc
|
||||
set_property(TARGET asm PROPERTY required "-xassembler-with-cpp")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue