[CMakeDriver]only use customCC when it's possible