summaryrefslogtreecommitdiff
path: root/libcxx/appveyor-reqs-install.cmd
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-05-10 02:43:02 +0000
committerEric Fiselier <eric@efcs.ca>2017-05-10 02:43:02 +0000
commit52ad6e55d97116296af7cdd5950acf244e06935d (patch)
tree974d7c2563939b6b06dc1851c757519bc5c0fbf0 /libcxx/appveyor-reqs-install.cmd
parentd742e5efa8684f35f1a849a62141e5c8cf78f20e (diff)
downloadllvm-52ad6e55d97116296af7cdd5950acf244e06935d.tar.gz
Rename Appveyor install helper script.
I'm really lazy and the old name for the helper script killed 2 letter tab completion for the include directory. This patch renames it to avoid that problem and enable lazyness. llvm-svn: 302619
Diffstat (limited to 'libcxx/appveyor-reqs-install.cmd')
-rw-r--r--libcxx/appveyor-reqs-install.cmd53
1 files changed, 53 insertions, 0 deletions
diff --git a/libcxx/appveyor-reqs-install.cmd b/libcxx/appveyor-reqs-install.cmd
new file mode 100644
index 000000000000..3a2087af51fe
--- /dev/null
+++ b/libcxx/appveyor-reqs-install.cmd
@@ -0,0 +1,53 @@
+@echo on
+
+if NOT EXIST C:\projects\deps (
+ mkdir C:\projects\deps
+)
+cd C:\projects\deps
+
+::###########################################################################
+:: Setup Compiler
+::###########################################################################
+if NOT EXIST llvm-installer.exe (
+ appveyor DownloadFile http://llvm.org/pre-releases/win-snapshots/LLVM-5.0.0-r301646-win32.exe -FileName llvm-installer.exe
+)
+if "%CLANG_VERSION%"=="ToT" (
+ START /WAIT llvm-installer.exe /S /D=C:\"Program Files\LLVM"
+)
+if DEFINED CLANG_VERSION @set PATH="C:\Program Files\LLVM\bin";%PATH%
+if DEFINED CLANG_VERSION clang-cl -v
+
+if DEFINED MINGW_PATH rename "C:\Program Files\Git\usr\bin\sh.exe" "sh-ignored.exe"
+if DEFINED MINGW_PATH @set "PATH=%PATH:C:\Program Files (x86)\Git\bin=%"
+if DEFINED MINGW_PATH @set "PATH=%PATH%;%MINGW_PATH%"
+if DEFINED MINGW_PATH g++ -v
+
+::###########################################################################
+:: Install a recent CMake
+::###########################################################################
+if NOT EXIST cmake (
+ appveyor DownloadFile https://cmake.org/files/v3.7/cmake-3.7.2-win64-x64.zip -FileName cmake.zip
+ 7z x cmake.zip -oC:\projects\deps > nul
+ move C:\projects\deps\cmake-* C:\projects\deps\cmake
+ rm cmake.zip
+)
+@set PATH=C:\projects\deps\cmake\bin;%PATH%
+cmake --version
+
+::###########################################################################
+:: Install Ninja
+::###########################################################################
+if NOT EXIST ninja (
+ appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-win.zip -FileName ninja.zip
+ 7z x ninja.zip -oC:\projects\deps\ninja > nul
+ rm ninja.zip
+)
+@set PATH=C:\projects\deps\ninja;%PATH%
+ninja --version
+
+::###########################################################################
+:: Setup the cached copy of LLVM
+::###########################################################################
+git clone --depth=1 http://llvm.org/git/llvm.git
+
+@echo off