forked from mariobarbareschi/Bellerophon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (48 loc) · 1.83 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
dist: trusty
sudo: required
cache:
directories:
$TRAVIS_BUILD_DIR/../llvm
language: C
before_install:
# Remove other versions of llvm/clang
- sudo apt-get purge -y -qq libllvm3.4 llvm-3.4 llvm* libllvm* clang*
- sudo rm -Rf /usr/local/clang
- sudo rm -Rf /usr/local/clang-5.0.0
# Install dependencies
- sudo apt-get -qq update
- sudo apt-get install -y cmake ninja-build build-essential zlib1g-dev libffi-dev libedit-dev libncurses5-dev libboost-dev wget tar doxygen
- sudo apt-get -qq install --only-upgrade cmake
# Clone LLVM/Clang repos
- cd ..
- /bin/bash -c "if [ ! -d \"llvm/.git\" ] ; then git clone https://github.com/llvm-mirror/llvm.git llvm && cd llvm && git checkout release_39 && cd tools && git clone https://github.com/llvm-mirror/clang.git clang && cd clang && git checkout release_39; fi"
- cd llvm
- mkdir -p build && cd build
# Build and install LLVM/Clang 3.9.1
- CC=gcc CXX=g++ cmake -DLLVM_ENABLE_CXX1Y=true -DLLVM_ENABLE_RTTI=ON -DLLVM_TARGET_ARCH="X86" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_FFI=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -G Ninja ..
- ninja
- sudo ninja install
- sudo sed -i 's/list(APPEND link_components "jit")/list(APPEND link_components "mcjit")/g' /usr/lib/cmake/llvm/LLVM-Config.cmake
# Download ParadisEO
- cd ~
- wget https://gforge.inria.fr/frs/download.php/31732/ParadisEO-2.0.1.tar.gz
- tar xfz ParadisEO-2.0.1.tar.gz
- rm -f ParadisEO-2.0.1.tar.gz
# Build and install ParadisEO
- cd ~/ParadisEO-2.0
- mkdir build && cd build
- sed -i "s/CMAKE_MINIMUM_REQUIRED(VERSION 2.6)/CMAKE_MINIMUM_REQUIRED(VERSION 3.3)/g" ../eo/CMakeLists.txt
- cmake .. -G Ninja
- ninja
- sudo ninja install
install:
# Build and install Bellerophon
- cd $TRAVIS_BUILD_DIR
- ./run_cmake
- cd build
- ninja
- sudo ninja install
script:
- llvm-config --version
- clang --version
- bellerophon -version