mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Use getenv on Windows, closes #248.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user