alliedmodders / ambuild

AlliedModders C++ Build System
BSD 3-Clause "New" or "Revised" License
60 stars 31 forks source link

Configure script fails if compiler is in PATH on Windows #166

Open zer0k-z opened 3 months ago

zer0k-z commented 3 months ago

When the configure script is launched, it runs through find_default_compiler since cl.exe can be found in PATH. However, the subprocess launched through subprocess.Popen do not have environment variables set or is not able to use PATH, so the function needs to have the environment variables passed to it somehow.