5 REM Update PATH to include local cmake and phython installations.
\r
6 REM SET PATH="C:\tools\cmake-3.10.2-win32-x86\bin";"C:\tools\python2.2.7.15\tools\";%PATH%
\r
10 ECHO Error, first script parameter should be LLVM source folder.
14 IF NOT EXIST "%TOP%" (
15 ECHO Error, could not find "%TOP%".
19 IF NOT EXIST "%~dp0mono.sln" (
\r
20 ECHO Error, script bust be located in same directory as mono.sln file.
24 SET LLVM_SRC_PATH=%TOP%
\r
25 SET LLVM_BUILD_PATH=%TOP%\llvm-build
\r
27 REM Update to reflect value used in mono.props, MONO_LLVM_INSTALL_DIR_PREFIX property.
\r
28 SET LLVM_INSTALL_PATH=%~dp0dist\llvm
\r
30 SET CROSS_CMAKE_FLAGS=^
\r
31 -DCMAKE_INSTALL_PREFIX="%LLVM_INSTALL_PATH%" ^
\r
32 -DCMAKE_BUILD_TYPE=Release ^
\r
33 -DLLVM_ENABLE_ZLIB=OFF ^
\r
34 -DLLVM_TARGETS_TO_BUILD="X86" ^
\r
35 -DCMAKE_CROSSCOMPILING=False ^
\r
36 -DCMAKE_SYSTEM_NAME=Windows
\r
39 cd %LLVM_BUILD_PATH%
\r
40 ECHO cmake.exe -G "Visual Studio 14 2015 Win64" %CROSS_CMAKE_FLAGS% %LLVM_SRC_PATH%
\r
41 cmake.exe -G "Visual Studio 14 2015 Win64" %CROSS_CMAKE_FLAGS% %LLVM_SRC_PATH%
\r
45 SET CONFIG_RESULT=ERRORLEVEL
49 SET PATH=%TEMP_PATH%
\r
50 EXIT /b %CONFIG_RESULT%
\r