annotate libcxx/appveyor-reqs-install.cmd @ 174:f935e5e0dbe7

merged
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 12:28:41 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 @echo on
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 if NOT EXIST C:\projects\deps (
anatofuz
parents:
diff changeset
4 mkdir C:\projects\deps
anatofuz
parents:
diff changeset
5 )
anatofuz
parents:
diff changeset
6 cd C:\projects\deps
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 ::###########################################################################
anatofuz
parents:
diff changeset
9 :: Setup Compiler
anatofuz
parents:
diff changeset
10 ::###########################################################################
anatofuz
parents:
diff changeset
11 if NOT EXIST llvm-installer.exe (
anatofuz
parents:
diff changeset
12 appveyor DownloadFile https://prereleases.llvm.org/win-snapshots/LLVM-9.0.0-r357435-win32.exe -FileName llvm-installer.exe
anatofuz
parents:
diff changeset
13 )
anatofuz
parents:
diff changeset
14 if "%CLANG_VERSION%"=="ToT" (
anatofuz
parents:
diff changeset
15 START /WAIT llvm-installer.exe /S /D=C:\"Program Files\LLVM"
anatofuz
parents:
diff changeset
16 )
anatofuz
parents:
diff changeset
17 if DEFINED CLANG_VERSION @set PATH="C:\Program Files\LLVM\bin";%PATH%
anatofuz
parents:
diff changeset
18 if DEFINED CLANG_VERSION clang-cl -v
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 if DEFINED MINGW_PATH rename "C:\Program Files\Git\usr\bin\sh.exe" "sh-ignored.exe"
anatofuz
parents:
diff changeset
21 if DEFINED MINGW_PATH @set "PATH=%PATH:C:\Program Files (x86)\Git\bin=%"
anatofuz
parents:
diff changeset
22 if DEFINED MINGW_PATH @set "PATH=%PATH%;%MINGW_PATH%"
anatofuz
parents:
diff changeset
23 if DEFINED MINGW_PATH g++ -v
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 ::###########################################################################
anatofuz
parents:
diff changeset
26 :: Install a recent CMake
anatofuz
parents:
diff changeset
27 ::###########################################################################
anatofuz
parents:
diff changeset
28 if NOT EXIST cmake (
anatofuz
parents:
diff changeset
29 appveyor DownloadFile https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip -FileName cmake.zip
anatofuz
parents:
diff changeset
30 7z x cmake.zip -oC:\projects\deps > nul
anatofuz
parents:
diff changeset
31 move C:\projects\deps\cmake-* C:\projects\deps\cmake
anatofuz
parents:
diff changeset
32 rm cmake.zip
anatofuz
parents:
diff changeset
33 )
anatofuz
parents:
diff changeset
34 @set PATH=C:\projects\deps\cmake\bin;%PATH%
anatofuz
parents:
diff changeset
35 cmake --version
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 ::###########################################################################
anatofuz
parents:
diff changeset
38 :: Install Ninja
anatofuz
parents:
diff changeset
39 ::###########################################################################
anatofuz
parents:
diff changeset
40 if NOT EXIST ninja (
anatofuz
parents:
diff changeset
41 appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
anatofuz
parents:
diff changeset
42 7z x ninja.zip -oC:\projects\deps\ninja > nul
anatofuz
parents:
diff changeset
43 rm ninja.zip
anatofuz
parents:
diff changeset
44 )
anatofuz
parents:
diff changeset
45 @set PATH=C:\projects\deps\ninja;%PATH%
anatofuz
parents:
diff changeset
46 ninja --version
anatofuz
parents:
diff changeset
47
anatofuz
parents:
diff changeset
48 ::###########################################################################
anatofuz
parents:
diff changeset
49 :: Setup the cached copy of LLVM
anatofuz
parents:
diff changeset
50 ::###########################################################################
anatofuz
parents:
diff changeset
51 git clone --depth=1 http://llvm.org/git/llvm.git
anatofuz
parents:
diff changeset
52
anatofuz
parents:
diff changeset
53 @echo off