build: use conditional CC/CXX assignment for generated mk/cc.mk

This ensures that if user specifies an alternate CC/CXX after
cc.mk was already generated, that the build will pick up the
difference, regenerate mk/cc.mk and trigger a rebuild.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I90c38c7b8eb09a5575c429769ba57f4e167fa4b0

Reviewed-on: https://review.gerrithub.io/399431
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Jim Harris 2018-02-12 08:55:15 -07:00
parent 5d027b5b06
commit 26731440ee

View File

@ -74,7 +74,7 @@ if [ "$LTO" = "y" ]; then
fi
fi
echo "CC=$CC"
echo "CXX=$CXX"
echo "CC?=$CC"
echo "CXX?=$CXX"
echo "CCAR=$CCAR"
echo "CC_TYPE=$CC_TYPE"