Browse Source

cmake: compiler: arcmwdt: Add no_strict_aliasing flag

This commit adds the `no_strict_aliasing` flag, which disables
the strict aliasing rule, for the ARC MetaWare compiler.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
pull/48948/head
Stephanos Ioannidis 3 years ago committed by Carles Cufí
parent
commit
4d36e8f693
  1. 3
      cmake/compiler/arcmwdt/compiler_flags.cmake

3
cmake/compiler/arcmwdt/compiler_flags.cmake

@ -132,6 +132,9 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "") @@ -132,6 +132,9 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "")
set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "")
set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "")
# Flag for disabling strict aliasing rule in C and C++
set_compiler_property(PROPERTY no_strict_aliasing -fno-strict-aliasing)
# Disable exceptions flag in C++
set_property(TARGET compiler-cpp PROPERTY no_exceptions "-fno-exceptions")

Loading…
Cancel
Save