msvc-wine
msvc-wine copied to clipboard
Request to Add Specific MSVC Environment Variables in msvc-wine
I am requesting the inclusion of the following environment variables in msvc-wine, as they are essential for building and using Visual Studio projects on Windows and should be mirrored in the msvc-wine environment. These variables are available on Windows installations of Visual Studio and are required for proper integration with MSVC build tools.
The variables are:
VCIDEInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\
VCToolsInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\
VCToolsRedistDir=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.36.32532\
VCToolsVersion=14.36.32532
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Community\
WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.26100.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.26100.0
WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
WindowsSDKLibVersion=10.0.26100.0\
WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\
WindowsSDKVersion=10.0.26100.0
These variables allow developers to ensure compatibility between the msvc-wine environment and standard Visual Studio installations. This is especially critical when working with cross-platform projects developed in Windows environments.
WindowsSdkDir, VCToolsInstallDir and VCToolsVersion should be already set in the MSBuild wrapper (but the rest are definitely not present)
I didn't need all of those variables above for a modding library that uses a .vcxproj file (but I weirdly did need to set IncludePath and LibraryPath otherwise the Windows headers/libraries couldn't be found)
@TheComputerGuy96 when compiling a driver with C++ stl and using intrinsics there is an issue with clang inbuilt intrinsic and msvc. So we need to know the VCINSTALLDIR and a few more environment variables so that we can reset the included paths.