forked from Maximus5/ConEmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvc.build.set.x64.cmd
57 lines (47 loc) · 1.2 KB
/
vc.build.set.x64.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo on
call "%~dp0vc.build.set.any.cmd" %*
if NOT defined VS_COMNTOOLS (
echo VS_COMNTOOLS NOT DEFINED!
exit /B 100
goto :EOF
)
set LIB=
:aux
if exist "%VS_COMNTOOLS%\VC\Auxiliary\Build\vcvars64.bat" (
echo trying vcvars64.bat
call "%VS_COMNTOOLS%\VC\Auxiliary\Build\vcvars64.bat"
if defined LIB goto next
)
:x86_amd64
if exist "%VS_COMNTOOLS%..\..\VC\BIN\x86_amd64\vcvarsx86_amd64.bat" (
echo trying x86_amd64\vcvarsx86_amd64.bat
call "%VS_COMNTOOLS%..\..\VC\BIN\x86_amd64\vcvarsx86_amd64.bat"
if defined LIB goto next
)
:bin
if exist "%VS_COMNTOOLS%..\..\VC\BIN\vcvarsx86_amd64.bat" (
echo trying BIN\vcvarsx86_amd64.bat
call "%VS_COMNTOOLS%..\..\VC\BIN\vcvarsx86_amd64.bat"
if defined LIB goto next
)
:vcvarsall
if exist "%VS_COMNTOOLS%..\..\VC\vcvarsall.bat" (
echo trying vcvarsall.bat
call "%VS_COMNTOOLS%..\..\VC\vcvarsall.bat" x64
if defined LIB goto next
)
:not_found
echo !!! VC version %~1 (x64) not found !!!
exit /B 1
goto :EOF
:next
set VS
set LIB
if "%VS_VERSION%" NEQ "9" goto skip_ddk_check
if exist C:\WinDDK\7600.16385.1\lib\Crt\amd64 set LIB=%LIB%;C:\WinDDK\7600.16385.1\lib\Crt\amd64
:skip_ddk_check
set WIDE=1
set IA64=
set AMD64=1
set DEBUG=
set NO_RELEASE_PDB=