-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.bat
48 lines (30 loc) · 1.03 KB
/
build.bat
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
@echo off
%WORKING_DRIVE%
cd %WORKING_DIR%
::..............................................................................
set THIS_DIR=%CD%
if /i "%BUILD_PROJECT%" == "llvm" goto :llvm
if /i "%BUILD_PROJECT%" == "clang" goto :clang
echo Invalid argument: '%1'
exit -1
:: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
:llvm
mkdir llvm\build
cd llvm\build
cmake .. %LLVM_CMAKE_CONFIGURE_FLAGS%
cmake --build . %CMAKE_BUILD_FLAGS%
cmake --build . --target install %CMAKE_BUILD_FLAGS%
cd %THIS_DIR%
7z a -t7z %GITHUB_WORKSPACE%\%LLVM_RELEASE_FILE% %LLVM_RELEASE_NAME%
goto :eof
:: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
:clang
mkdir clang\build
cd clang\build
cmake .. %CLANG_CMAKE_CONFIGURE_FLAGS%
cmake --build . %CMAKE_BUILD_FLAGS%
cmake --build . --target install %CMAKE_BUILD_FLAGS%
cd %THIS_DIR%
7z a -t7z %GITHUB_WORKSPACE%\%CLANG_RELEASE_FILE% %CLANG_RELEASE_NAME%
goto :eof
::..............................................................................