|
1 |
| -# Use something that's not 'ruby' so we don't set up things like |
2 |
| -# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually |
3 |
| -# downloads a rust/cargo snapshot, which we don't really want for building rust. |
4 |
| -language: c |
| 1 | +# needed to build LLVM |
| 2 | +language: cpp |
| 3 | +# GCC is too old to build LLVM |
| 4 | +compiler: clang |
5 | 5 | sudo: false
|
6 | 6 |
|
7 |
| -# The test suite is in general way too stressful for travis, especially in |
8 |
| -# terms of time limit and reliability. In the past we've tried to scale things |
9 |
| -# back to only build the stage1 compiler and run a subset of tests, but this |
10 |
| -# didn't end up panning out very well. |
11 |
| -# |
12 |
| -# As a result, we're just using travis to run `make tidy` now. It'll help |
13 |
| -# everyone find out about their trailing spaces early on! |
| 7 | +# build libcxx and libcxxabi, needed to build LLVM |
| 8 | +install: |
| 9 | + - pushd . |
| 10 | + - svn co --quiet http://llvm.org/svn/llvm-project/libcxx/trunk libcxx |
| 11 | + - cd libcxx/lib && bash buildit && popd |
| 12 | + - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/libcxx/lib |
| 13 | + - export C_INCLUDE_PATH=$C_INCLUDE_PATH:$(pwd)/libcxx/include |
| 14 | + - export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$(pwd)/libcxx/include |
| 15 | + - export LDFLAGS="$LDFLAGS -L$(pwd)/libcxx/lib" |
| 16 | + - pushd . |
| 17 | + - svn co --quiet http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi |
| 18 | + - cd libcxxabi/lib && bash buildit && popd |
| 19 | + - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/libcxxabi/lib |
| 20 | + - export C_INCLUDE_PATH=$C_INCLUDE_PATH:$(pwd)/libcxxabi/include |
| 21 | + - export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:$(pwd)/libcxxabi/include |
| 22 | + - export LDFLAGS="$LDFLAGS -L$(pwd)/libcxxabi/lib" |
| 23 | + |
14 | 24 | before_script:
|
15 |
| - - ./configure --llvm-root=path/to/nowhere |
| 25 | + - mkdir -p build && cd build |
| 26 | + - ../configure --enable-optimize --disable-optimize-tests --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu |
16 | 27 | script:
|
17 |
| - - make tidy |
| 28 | + - make clean && make rustc-stage1 |
18 | 29 |
|
19 | 30 | notifications:
|
20 | 31 | email: false
|
21 | 32 |
|
22 | 33 | branches:
|
23 | 34 | only:
|
24 | 35 | - master
|
| 36 | + |
| 37 | +cache: |
| 38 | + directories: |
| 39 | + - build |
0 commit comments