cmake: move specs compiler and linker flags to toolchain properties
Moving specs argument to compiler and linker properties so that the compiler and linker in use can decide how the flags are mapped / handled for the compiler and linker in use. This avoids specifying `--specs=spec.picolibc` for clang which prints a warning about an unused argument. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
102b3fc078
commit
9d835fe464
6 changed files with 16 additions and 3 deletions
|
@ -241,3 +241,5 @@ set_compiler_property(PROPERTY warning_shadow_variables -Wshadow)
|
|||
|
||||
set_compiler_property(PROPERTY no_builtin -fno-builtin)
|
||||
set_compiler_property(PROPERTY no_builtin_malloc -fno-builtin-malloc)
|
||||
|
||||
set_compiler_property(PROPERTY specs -specs=)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue