File: _vs.bat

package info (click to toggle)
libxsmm 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,800 kB
  • sloc: ansic: 70,040; fortran: 5,281; makefile: 3,333; cpp: 3,185; sh: 2,136; f90: 1,763; pascal: 1,469; python: 762
file content (56 lines) | stat: -rw-r--r-- 1,845 bytes parent folder | download
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
@ECHO OFF

SET MSBUILDDISABLENODEREUSE=1

SET VS_VERSION=%1
SET VS_VERSION=%VS_VERSION:~2,4%
IF "%VS_VERSION%" == "" SET VS_VERSION=2020
:SELECT_VS_VERSION
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
  )
)
IF EXIST '%VS_COMNTOOLS%..\IDE\devenv.exe' (
  SET VS_IDE=%VS_COMNTOOLS%..\IDE\devenv.exe
) ELSE (
  SET VS_IDE=devenv
)

SET ICL_VERSION=%2
IF "%ICL_VERSION%" == "" SET ICL_VERSION=20
:SELECT_ICL_VERSION
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
  )
)
IF EXIST %ICPP_COMPILER%bin\compilervars.bat (
  IF "%PROCESSOR_ARCHITECTURE%" == "x86" (
    CALL "%ICPP_COMPILER%bin\compilervars.bat" ia32 vs%VS_VERSION%
  ) ELSE (
    CALL "%ICPP_COMPILER%bin\compilervars.bat" intel64 vs%VS_VERSION%
  )
) ELSE (
  IF %ICL_VERSION% GTR 12 (
    SET/A ICL_VERSION-=1
    GOTO SELECT_ICL_VERSION
  )
)

SET MPI_ROOT=%I_MPI_ROOT:-RT=%