gem5: build with ccache

CXX='ccache c++' does not work, CXX=/my/path/to/ccache/wrapper/c++
does not work, the only thing that works it to put it in your PATH.

I would rather put a wrapper that forwards to ccache in this repo to
avoid the external host dependency:

    #!/usr/bin/env bash
    ccache c++ "$@"

but then that script has to remove its directory from PATH or else
infinite recursion, and I have no patience to code that.

I considered using the ccache from Buildroot, but it does not setup the
nice /usr/lib PATH, so I gave up on that as well.
This commit is contained in:
Ciro Santilli
2018-06-11 18:17:31 +01:00
parent 007e4114a6
commit 8b5c211c22
2 changed files with 2 additions and 0 deletions

1
configure vendored
View File

@@ -40,6 +40,7 @@ wget \
"
if "$gem5"; then
pkgs="$pkgs \
ccache \
gcc-aarch64-linux-gnu \
gcc-arm-linux-gnueabi \
libgoogle-perftools-dev \