toolchain: Move extra warning options to toolchain abstraction
Move extra warning option from generic twister script into compiler-dependent config files. ARCMWDT compiler doesn't support extra warning options ex. "-Wl,--fatal-warnings". To avoid build fails flag "disable_warnings_as_errors" should be passed to twister. This allows all warning messages and make atomatic test useles. Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
This commit is contained in:
parent
a28dba2503
commit
0dec4cf927
10 changed files with 40 additions and 8 deletions
|
@ -134,6 +134,10 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b"
|
|||
# Flag for disabling strict aliasing rule in C and C++
|
||||
set_compiler_property(PROPERTY no_strict_aliasing -fno-strict-aliasing)
|
||||
|
||||
# Extra warning options
|
||||
set_property(TARGET compiler PROPERTY warnings_as_errors -Werror)
|
||||
set_property(TARGET asm PROPERTY warnings_as_errors -Werror -Wa,--fatal-warnings)
|
||||
|
||||
# Disable exceptions flag in C++
|
||||
set_property(TARGET compiler-cpp PROPERTY no_exceptions "-fno-exceptions")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue