zephyr/cmake/compiler/gcc
Torsten Rasmussen 90f56dbabf cmake: extend target_ld_options() to support grouping of flags
Fixes #28456

This commit extends `target_ld_options()` with a NO_SPLIT flag.

Specifying `NO_SPLIT` will ensure that all linker flags will be applied
together when testing the compiler and linker.
This allows a caller to ensure that flags are tested together.

This fixes the RISC-V case where the flags `-mabi` and `-march` were
omitted because they were tested individually.

Note, the update of `target_ld_options()` will allow the same flag on
`zephyr_ld_options()`

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-10-27 13:09:02 +01:00
..
compiler_flags.cmake cmake: c++ compiler flag exclusion, -Werror=implicit-int 2020-09-07 17:22:37 +02:00
generic.cmake cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
target.cmake toolchain: improved toolchain abstraction for compilers and linker 2020-09-04 20:36:59 +02:00
target_arm.cmake kconfig: Rename CONFIG_FLOAT to CONFIG_FPU 2020-04-27 19:03:44 +02:00
target_riscv.cmake cmake: extend target_ld_options() to support grouping of flags 2020-10-27 13:09:02 +01:00
target_x86.cmake cmake: add --divide to GNU assembler options for x86 2019-10-31 09:09:22 +01:00