forked from francisvm/j2-llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (52 loc) · 1.77 KB
/
.travis.yml
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
57
58
59
60
61
# C++ language configuration.
language: cpp
# Install dependencies
addons:
apt:
sources:
ubuntu-toolchain-r-test
packages:
g++-6
script:
- git config --global user.email "[email protected]"
- git config --global user.name "Francis Visoiu Mistrih"
- export ROOT=`pwd`
# Get newer cmake
- wget --no-check-certificate http://cmake.org/files/v3.7/cmake-3.7.0-rc1-Linux-x86_64.tar.gz
- tar -xf cmake-3.7.0-rc1-Linux-x86_64.tar.gz
- export PATH=$ROOT/cmake-3.7.0-rc1-Linux-x86_64/bin:$PATH
# Add clang
- git clone https://github.com/thegameg/clang.git -b j2 tools/clang
- cd tools/clang
- git remote add upstream http://llvm.org/git/clang.git
- git pull --rebase upstream master
- cd -
# Add lld
- git clone https://github.com/thegameg/lld.git -b j2 tools/lld
- cd tools/lld
- git remote add upstream http://llvm.org/git/lld.git
- git pull --rebase upstream master
- cd -
# Pull llvm
- git remote add upstream http://llvm.org/git/llvm.git
- git pull --rebase upstream master
# Build llvm
- mkdir build && cd build
- CC=gcc-6 CXX=g++-6 cmake -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="J2"
-DLLVM_TARGETS_TO_BUILD="J2"
-DLLVM_BUILD_TOOLS=ON
-DLLVM_INCLUDE_TOOLS=ON
-DLLVM_INCLUDE_EXAMPLES=OFF
-DLLVM_BUILD_EXAMPLES=OFF
-DLLVM_BUILD_TESTS=ON
-DLLVM_INCLUDE_TESTS=ON
-DBUILD_SHARED_LIBS=ON
..
#- make
# Check llvm
- make check-llvm-codegen-j2
- make check-llvm-object-j2
# Check clang
- make clangBasic clangDriver
# Check lld
- make lld