diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-01 14:30:00 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-01 21:55:50 +0000 |
commit | 76d2b5cd5ddfc3d9a592d31f052e1bb2887fcf1d (patch) | |
tree | a816bba2bc924c77959851821ee696fa1179cf29 /zephyr/firmware_builder.py | |
parent | 4fbecddd847e7adffff8843cdf93f4c68f44309a (diff) | |
download | chrome-ec-76d2b5cd5ddfc3d9a592d31f052e1bb2887fcf1d.tar.gz |
cq: Pass the compiler to twister
On some CQ runners /usr/bin/cc is a symlink to clang instead of gcc. To
prevent that from affecting the build, always pass the compiler to
twister.
The native_posix tests still use the compiler specified by the toolchain
cmake files, this only affects unit_testing builds.
BRANCH=None
BUG=None
TEST=Ran the twister cmd.
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: I749149d17ad9cd46c0179048209d0067aa4ef2ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3997617
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Aaron Massey <aaronmassey@google.com>
Diffstat (limited to 'zephyr/firmware_builder.py')
-rwxr-xr-x | zephyr/firmware_builder.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/firmware_builder.py b/zephyr/firmware_builder.py index 545d31312d..30b4a1353e 100755 --- a/zephyr/firmware_builder.py +++ b/zephyr/firmware_builder.py @@ -46,6 +46,8 @@ def run_twister(platform_ec, code_coverage=False, extra_args=None): "-p", "unit_testing", "--no-upload-cros-rdb", + "-x=CMAKE_C_COMPILER=/usr/bin/x86_64-pc-linux-gnu-gcc", + "-x=CMAKE_CXX_COMPILER=/usr/bin/x86_64-pc-linux-gnu-g++", ] if extra_args: |