summaryrefslogtreecommitdiff
path: root/BuildingWithLLVM.mdwn
blob: f221877ae34242919512cda28b9a3ffca1e65493 (plain)
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

This page describes how to build mesa with llvm support. 

First build llvm from svn with clang support: 

    svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
    cd llvm
    ./configure --enable-pic
    make
    make install
    cd tools
    svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
    cd clang
    make
    make install

Next build mesa with llvm support: 

    git clone git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa
    cd mesa
    git checkout --track -b gallium-0.2 origin/gallium-0.2
    make linux-llvm

Mesa-7.9 [still unreleased as of 17-09-2010, but already branched from master] has configure switch for autoconf-based build system:  

    --enable-gallium-llvm