CmdStan 2.17.0 build process not detecting the compiler correctly

You can also put

CC=g++

into a file called local in the make/ directory.