Use getenv on Windows, closes #248.

This commit is contained in:
Christian Kamm
2009-05-13 18:08:40 +02:00
parent 72a546af4a
commit 5694ec18ff

View File

@@ -21,10 +21,8 @@ sys::Path getGcc() {
cc = gcc.c_str();
if (!cc)
#if !_WIN32
cc = getenv("CC");
if (!cc)
#endif
cc = "gcc";
sys::Path path = sys::Program::FindProgramByName(cc);