On 02/01/2018 05:16 PM, Atila Neves wrote: > It'd probably be easier to `executeShell("vcvarsall.bat")` than trying > to replicate the logic in dmd itself. It's bound to get it wrong (as it > has) and we don't have Microsoft's resources to test backwards > compatibility.
That was my first suggestion as well, it's just to darn slow to call though. Executing vcvarsall.bat takes 2+ seconds just to setup the env variables, so we have to replicate what it does ourselves. Maybe it's worth revisiting to figure out what takes so much time. -Martin