File tree Expand file tree Collapse file tree 3 files changed +70
-2
lines changed Expand file tree Collapse file tree 3 files changed +70
-2
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ python:
8
8
install :
9
9
- sudo apt-get update
10
10
- sudo apt-get install llvm-3.4 clang-3.4 libapr1-dev libaprutil1-dev
11
+ - sudo apt-get install dragonegg-4.8 llvm-3.3 llvm-gcc-4.8
12
+ - sudo ln -s /usr/bin/llvm-gcc-4.8 /usr/bin/llvm-gcc
11
13
- export WLLVM_HOME=`pwd`
12
14
13
15
# command to run tests
14
16
script :
15
- # build apache (i.e. httpd-2.4.12)
16
- - ${WLLVM_HOME}/.travis/apache.sh
17
+ # build apache with clang (i.e. httpd-2.4.12)
18
+ - ${WLLVM_HOME}/.travis/apache_clang.sh
19
+ # when it works we can uncomment this puppy out
20
+ # - ${WLLVM_HOME}/.travis/apache_dragonegg.sh
21
+
17
22
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -x
2
+ # Make sure we exit if there is a failure
3
+ set -e
4
+
5
+
6
+ export PATH=/usr/lib/llvm-3.4/bin:${WLLVM_HOME} :${PATH}
7
+ export LLVM_COMPILER=clang
8
+ export WLLVM_OUTPUT=WARNING
9
+
10
+ wget http://apache.mirrors.pair.com//httpd/httpd-2.4.12.tar.gz
11
+ tar xfz httpd-2.4.12.tar.gz
12
+ mv httpd-2.4.12 apache_clang
13
+ cd apache_clang
14
+ CC=wllvm ./configure
15
+ make
16
+ extract-bc httpd
17
+
18
+
19
+ if [ -s " httpd.bc" ]
20
+ then
21
+ echo " httpd.bc built."
22
+ else
23
+ exit 1
24
+ fi
25
+
26
+
27
+
28
+
29
+
30
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -x
2
+ # Make sure we exit if there is a failure
3
+ set -e
4
+
5
+
6
+ export PATH=/usr/lib/llvm-3.3/bin:${WLLVM_HOME} :${PATH}
7
+ export LLVM_COMPILER=dragonegg
8
+ export LLVM_GCC_PREFIX=llvm-
9
+ export LLVM_DRAGONEGG_PLUGIN=/usr/lib/gcc/x86_64-linux-gnu/4.8/plugin/dragonegg.so
10
+
11
+ export WLLVM_OUTPUT=WARNING
12
+
13
+ wget http://apache.mirrors.pair.com//httpd/httpd-2.4.12.tar.gz
14
+ tar xfz httpd-2.4.12.tar.gz
15
+ mv httpd-2.4.12 apache_dragonegg
16
+ cd apache_dragonegg
17
+ CC=wllvm ./configure
18
+ make
19
+ extract-bc httpd
20
+
21
+
22
+ if [ -s " httpd.bc" ]
23
+ then
24
+ echo " httpd.bc built."
25
+ else
26
+ exit 1
27
+ fi
28
+
29
+
30
+
31
+
32
+
33
+
You can’t perform that action at this time.
0 commit comments