MSVC path on windows

Jeremy DeHaan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 12 19:21:52 PST 2017


I'm trying to automate a build process for a project of mine, and 
I want to get the path to the MSVC toolchain DMD is using. I 
don't want to hard code any paths that may not work on some 
people's set-ups.

I know there are some environmental variables such as 
VS140COMNTOOLS, VS120COMNTOOLS, etc. Are these reliable to get 
the location for some MSVC toolchain?

I've also thought of parsing the PATH to figure out where dmd is 
installed and extract the info from the sc.ini file. Am I being 
ridiculous?




More information about the Digitalmars-d-learn mailing list