File: _vs.bat

package info (click to toggle)
libxsmm 1.17-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 14,976 kB
  • sloc: ansic: 119,587; cpp: 27,680; fortran: 9,179; sh: 5,765; makefile: 5,040; pascal: 2,312; python: 1,812; f90: 1,773
file content (61 lines) | stat: -rw-r--r-- 2,195 bytes parent folder | download | duplicates (2)
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
58
59
60
61
@ECHO OFF

SET MSBUILDDISABLENODEREUSE=1

SET VS_VERSION=%1
IF "%VS_VERSION%"=="" SET VS_VERSION=9999
:SELECT_VS_VERSION
IF "%VS_VERSION%"=="2019" SET VS_COMNTOOLS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\"
IF "%VS_VERSION%"=="2017" SET VS_COMNTOOLS="%VS2017INSTALLDIR%\Common\Tools\"
IF "%VS_VERSION%"=="2015" SET VS_COMNTOOLS="%VS140COMNTOOLS%"
IF "%VS_VERSION%"=="2013" SET VS_COMNTOOLS="%VS120COMNTOOLS%"
IF "%VS_VERSION%"=="2010" SET VS_COMNTOOLS="%VS110COMNTOOLS%"
IF "%VS_VERSION%"=="2010" SET VS_COMNTOOLS="%VS100COMNTOOLS%"
IF "%VS_VERSION%"=="2008" SET VS_COMNTOOLS="%VS90COMNTOOLS%"
IF %VS_COMNTOOLS%=="" (
  IF %VS_VERSION% GTR 2008 (
    SET/A VS_VERSION-=1
    GOTO SELECT_VS_VERSION
  )
)

SET ICL_VERSION=%2
REM IF "%ICL_VERSION%"=="" SET ICL_VERSION=%VS_VERSION:~2,4%
IF "%ICL_VERSION%"=="" SET ICL_VERSION=99
:SELECT_ICL_VERSION
IF "%ICL_VERSION%"=="20" SET ICPP_COMPILER=%ICPP_COMPILER20%
IF "%ICL_VERSION%"=="19" SET ICPP_COMPILER=%ICPP_COMPILER19%
IF "%ICL_VERSION%"=="18" SET ICPP_COMPILER=%ICPP_COMPILER18%
IF "%ICL_VERSION%"=="17" SET ICPP_COMPILER=%ICPP_COMPILER17%
IF "%ICL_VERSION%"=="16" SET ICPP_COMPILER=%ICPP_COMPILER16%
IF "%ICL_VERSION%"=="15" SET ICPP_COMPILER=%ICPP_COMPILER15%
IF "%ICL_VERSION%"=="14" SET ICPP_COMPILER=%ICPP_COMPILER14%
IF "%ICL_VERSION%"=="13" SET ICPP_COMPILER=%ICPP_COMPILER13%
IF "%ICL_VERSION%"=="12" SET ICPP_COMPILER=%ICPP_COMPILER12%
IF "%ICPP_COMPILER%"=="" (
  IF %ICL_VERSION% GTR 12 (
    SET/A ICL_VERSION-=1
    GOTO SELECT_ICL_VERSION
  )
)
REM CALL "%ICPP_COMPILER%bin\compilervars.bat" intel64 vs%VS_VERSION%
IF EXIST %ICPP_COMPILER%bin\compilervars.bat (
  IF "%PROCESSOR_ARCHITECTURE%"=="x86" (
    CALL "%ICPP_COMPILER%bin\compilervars.bat" ia32
  ) ELSE (
    CALL "%ICPP_COMPILER%bin\compilervars.bat" intel64
  )
) ELSE (
  IF %ICL_VERSION% GTR 12 (
    SET/A ICL_VERSION-=1
    GOTO SELECT_ICL_VERSION
  )
)

SET MPI_ROOT="%I_MPI_ROOT:-RT=%"

IF EXIST %VS_COMNTOOLS%"..\IDE\devenv.exe" (
  START/B "" %VS_COMNTOOLS%..\IDE\devenv.exe "%~d0%~p0_vs%VS_VERSION%.sln"
) ELSE (
  START/B "" "%~d0%~p0_vs%VS_VERSION%.sln"
)