phase1: rework MakeEnv()
authorJo-Philipp Wich <jo@mein.io>
Tue, 25 Sep 2018 13:57:28 +0000 (15:57 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 25 Sep 2018 13:57:28 +0000 (15:57 +0200)
commit0045e061ff96d06c22077bde720e8227a9ea45a6
treea72552e0dc2752420595a45159e93da629724684
parent5a3160f2ed354628ac26e849fb3a958261d1008a
phase1: rework MakeEnv()

Always set CCC and CCXX since ./staging_dir/host/bin/{gcc,g++} might be
symlinked to the ccache wrapper which uses $CCC / $CCXX to refer to the
actual compiler, even when we intend to invoke the build without ccache.

While being at it, shuffle the code around somewhat to reduce some
redundancy and to make the function a bit shorter.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg