diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-11-20 14:14:46 -0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-22 01:30:22 +0000 |
commit | 0e426b12b8982d2196a0ba8dc08cdb94f81839f5 (patch) | |
tree | 6b711a871ed8acd5da0f14ac2ba2e90a05b49d12 /Makefile.rules | |
parent | 229b358f694febb91ac0265850da8c52df588bd8 (diff) | |
download | chrome-ec-0e426b12b8982d2196a0ba8dc08cdb94f81839f5.tar.gz |
util: Compile ectool (and other utils) with C++
The utils only run on the host, so we have no restrictions on compiler.
Use C++ so that ectool can use "libec".
BRANCH=none
BUG=b:144959033
TEST=make buildall
Force-Relevant-Builds: all
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I44b9bb25b2659b678bc4b71e203a1901eff51b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2556757
Reviewed-by: Yuval Peress <peress@google.com>
Code-Coverage: Yuval Peress <peress@google.com>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 81be7812f8..87d21b6b03 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -307,7 +307,7 @@ hex: $(hex-y) utils-art: $(build-art) .PHONY: utils-host -utils-host: $(host-utils) +utils-host: $(host-utils) $(host-utils-cxx) .PHONY: utils-build utils-build: $(build-utils) @@ -672,6 +672,9 @@ $(build-utils): $(out)/%:$(build-srcs) $(host-utils): $(out)/%:$(host-srcs) $(call quiet,c_to_host,HOSTCC ) +$(host-utils-cxx): $(out)/%:$(host-srcs-cxx) + $(call quiet,cxx_to_host,HOSTCXX ) + $(out)/cscope.files: $(out)/$(PROJECT).bin $(call quiet,deps_to_list,SH ) |