Merge: nitc: use ccache again
authorJean Privat <jean@pryen.org>
Thu, 15 Jun 2017 19:46:35 +0000 (15:46 -0400)
committerJean Privat <jean@pryen.org>
Thu, 15 Jun 2017 19:46:35 +0000 (15:46 -0400)
commit6d6d9c2055bdd0b4a915e792dc3f8c3585a2f7e7
treedda00f7264a74315f2fb2de83ec28aa59ae9e1b1
parentd4c7ad0ed508066e50f367530cd416309a60d15a
parentbdf18e4c5b7762ebfa027d275ba1012662732168
Merge: nitc: use ccache again

c02e04291807cf97228068cc5b52f453d84ab37b unexpectedly disable ccache.
Since CC is set by default [1], the ?= attempt did never assign anything [2].

The solution is to assign unless if CC is set by another mean.
This can be done thanks to the origin function [3].

  [1]: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
  [2]: https://www.gnu.org/software/make/manual/html_node/Flavors.html
  [3]: https://www.gnu.org/software/make/manual/html_node/Origin-Function.html

Pull-Request: #2497