diff options
author | Jeremy Bettis <jbettis@google.com> | 2021-03-25 13:54:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-29 22:39:11 +0000 |
commit | 877ff30d6f5e4c7d84c5b8917f19e36403941871 (patch) | |
tree | 9f35748746f61028a39977cdb57e93d9ed12df90 /zephyr | |
parent | 914610966ba07fccda96c086727c4bc15d3cd56c (diff) | |
download | chrome-ec-877ff30d6f5e4c7d84c5b8917f19e36403941871.tar.gz |
zephyr: Import the compiler specific link flags
I noticed earlier that the --coverage flag was missing from the link
command, and added it to ldd/linker_flags.cmake, but I realize this is
a better fix, as it will pick up all compiler specific link flags in
zephyr.
BUG=b:183007888
TEST=cmds in code_coverage.md
BRANCH=none
Change-Id: I957100dbe0e5c75e2e8124ce121f295778bd8f68
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787353
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/cmake/linker/lld/linker_flags.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zephyr/cmake/linker/lld/linker_flags.cmake b/zephyr/cmake/linker/lld/linker_flags.cmake index c1a4379e27..5055e4c5a4 100644 --- a/zephyr/cmake/linker/lld/linker_flags.cmake +++ b/zephyr/cmake/linker/lld/linker_flags.cmake @@ -4,5 +4,6 @@ # Include definitions for bfd as a base. include("${ZEPHYR_BASE}/cmake/linker/ld/linker_flags.cmake") - -set_property(TARGET linker PROPERTY coverage --coverage) +# ld/linker_flags.cmake includes ${LINKER}/${COMPILER}/linker_flags.cmake but +# that doesn't exist for ldd, so import the path that actually exists. +include("${ZEPHYR_BASE}/cmake/linker/ld/${COMPILER}/linker_flags.cmake" OPTIONAL) |