VSOptions

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
version(Windows)
extern (C++)
struct VSOptions {
const(char)* WindowsSdkDir;
const(char)* WindowsSdkVersion;
const(char)* UCRTSdkDir;
const(char)* UCRTVersion;
const(char)* VSInstallDir;
const(char)* VCInstallDir;
const(char)* VCToolsInstallDir;
}

Members

Functions

compilerPath
const(char)* compilerPath(bool x64)

retrieve path to the Microsoft compiler executable

defaultRuntimeLibrary
const(char)* defaultRuntimeLibrary(bool x64)

retrieve the name of the default C runtime library

getSDKLibPath
const(char)* getSDKLibPath(bool x64)

get the path to the Windows SDK CRT libraries

getUCRTLibPath
const(char)* getUCRTLibPath(bool x64)

get the path to the universal CRT libraries

getVCBinDir
const(char)* getVCBinDir(bool x64, const(char)* addpath)

get Visual C bin folder

getVCLibDir
const(char)* getVCLibDir(bool x64)

get Visual C Library folder

initialize
void initialize()

fill member variables from environment or registry

linkOptions
const(char)* linkOptions(bool x64)

retrieve options to be passed to the Microsoft linker

linkerPath
const(char)* linkerPath(bool x64)

retrieve path to the Microsoft linker executable also modifies PATH environment variable if necessary to find conditionally loaded DLLs

uninitialize
void uninitialize()

set all members to null. Used if we detect a VS installation but end up falling back on lld-link.exe

Meta