-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
39 lines (23 loc) · 1.05 KB
/
INSTALL
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
To build STACK from source code, you need the development version of
Clang and LLVM, as detailed at:
http://clang.llvm.org/get_started.html
We use the following parameters to LLVM's configure:
--enable-cxx11 --enable-targets=host --enable-bindings=none --enable-shared --enable-debug-symbols --enable-optimized
but if you want Clang and LLVM to build faster, use:
--enable-cxx11 --enable-targets=host --enable-bindings=none --enable-shared --disable-assertions --disable-clang-arcmt --disable-clang-static-analyzer --disable-clang-rewriter
If you prefer to install Clang and LLVM in a directory other than
/usr/local, also pass --prefix=... to its configure, and add that
directory to your PATH.
Then run in the LLVM build directory:
$ make install
This will install Clang and LLVM.
Then build STACK in its source root directory.
If building from git, first do:
$ autoreconf -fvi
If building from a source tarball, skip the above step.
Then configure and make.
$ mkdir build
$ cd build
$ ../configure
$ make
Finally, add `<STACK_ROOT>/build/bin` to PATH.