Skip to content

Commit 398f74d

Browse files
author
Jorge Aparicio
committed
travis: build stage1 rustc
1 parent 7f8c687 commit 398f74d

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

.travis.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
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
55
sudo: false
66

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+
1424
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
1627
script:
17-
- make tidy
28+
- make clean && make rustc-stage1
1829

1930
notifications:
2031
email: false
2132

2233
branches:
2334
only:
2435
- master
36+
37+
cache:
38+
directories:
39+
- build

0 commit comments

Comments
 (0)