diff options
author | Yuval Peress <peress@google.com> | 2022-11-22 22:23:18 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-25 16:00:26 +0000 |
commit | e10c75edd1c17eb70f7faf9add22cb7f50e2eee2 (patch) | |
tree | 10abfa7117da358eee21e60d5876c0f36d4dd397 /docs | |
parent | 0fdab007bed8126649b2f29fcdb0a7f26fb1ff16 (diff) | |
download | chrome-ec-e10c75edd1c17eb70f7faf9add22cb7f50e2eee2.tar.gz |
build: update build cmake files for unit tests
Adding the unittest Zephyr component now updates the CMAKE_C_COMPILER
and CMAKE_CXX_COMPILER values. This means that find_package needs to
be called prior to any of the test library commands so the right
compiler is set for all the libraries.
Twister launcher no longer needs to set the compiler as an argument to
CMake.
zephyr/cmake compiler and toolchain required updates to play nice with
posix/unit_testing architectures. These included:
1. Conditionally adding the -fno-PIC flag
2. Setting CMAKE_CXX_COMPILER for clang
3. Adding a unit_testing cross compile target to the llvm and host
toolchain
BRANCH=none
BUG=none
TEST=./twister
Cq-Depend: chromium:4047569
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: Ib1e8ddcb526a56c05ef925d4d9ab97cb65004038
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4050266
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions