toolchain: move some hardcoded flags to properties
Some basic flags that were hardcoded needed to be moved to properties to be able to implement alternative toolchains. Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
This commit is contained in:
parent
d39d420c54
commit
e9a0d146cf
3 changed files with 19 additions and 1 deletions
|
@ -231,6 +231,9 @@ set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe
|
|||
# Required ASM flags when using gcc
|
||||
set_property(TARGET asm PROPERTY required "-xassembler-with-cpp")
|
||||
|
||||
# GCC compiler flags for imacros. The specific header must be appended by user.
|
||||
set_property(TARGET asm PROPERTY imacros "-imacros")
|
||||
|
||||
# gcc flag for colourful diagnostic messages
|
||||
check_set_compiler_property(PROPERTY diagnostic -fdiagnostics-color=always)
|
||||
|
||||
|
@ -253,3 +256,7 @@ set_compiler_property(PROPERTY no_builtin_malloc -fno-builtin-malloc)
|
|||
set_compiler_property(PROPERTY specs -specs=)
|
||||
|
||||
set_compiler_property(PROPERTY include_file -include)
|
||||
|
||||
set_compiler_property(PROPERTY cmse -mcmse)
|
||||
|
||||
set_property(TARGET asm PROPERTY cmse -mcmse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue