llvm.org GIT mirror llvm / 0c0f4b6
Give packagers some advice about how to build LLVM so it's useful to the most users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97198 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 9 years ago
3 changed file(s) with 73 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
99
1010 Please see the HTML documentation provided in docs/index.html for further
1111 assistance with LLVM.
12
13 If you're writing a package for LLVM, see docs/Packaging.html for our
14 suggestions.
0
1 "http://www.w3.org/TR/html4/strict.dtd">
2
3
4 Advice on Packaging LLVM
5
6
7
8
9
Advice on Packaging LLVM
10
11
  • Overview
  • 12
  • C++ Features
  • 13
  • Shared Library
  • 14
    15
    16
    17
    18
    19
    20
    21

    LLVM sets certain default configure options to make sure our developers don't

    22 break things for constrained platforms. These settings are not optimal for most
    23 desktop systems, and we hope that packagers (i.e., Redhat, Debian, MacPorts,
    24 etc.) will tweak them. This document lists settings we suggest you tweak.
    25

    26
    27
    28
    29
    30
    31
    32
    33
    34
    RTTI
    LLVM disables RTTI by default. Add REQUIRES_RTTI=1
    35 to your environment while running make to re-enable it. This will
    36 allow users to build with RTTI enabled and inherit from LLVM classes.
    37
    Exceptions
    LLVM disables exceptions by default. Add
    38 REQUIRES_EH=1 to your environment while running make to
    39 re-enable them. This will allow users to link LLVM and exception-using code.
    40 It also re-enables RTTI.
    41
    42
    43
    44
    45
    46
    47
    48
    49

    Configure with --enable-shared to build

    50 libLLVM-major.minor.(so|dylib) and link the tools
    51 against it. This saves lots of binary size at the cost of some startup time.
    52

    53
    54
    55
    56
    57
    58
    59 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS">
    60
    61 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01">
    62 The LLVM Compiler Infrastructure
    63 Last modified: $Date: 2009-01-01 23:10:51 -0800 (Thu, 01 Jan 2009) $
    64
    65
    66
    115115
  • How to build the Ada/C/C++/Fortran front-ends -
  • 116116 Instructions for building gcc front-ends from source.
    117117
    118
  • Packaging guide - Advice on packaging
  • 119 LLVM into a distribution.
    120
    118121
  • The LLVM Lexicon - Definition of acronyms, terms
  • 119122 and concepts used in LLVM.
    120123