X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FCMake.html;h=d83e3ad545654335f889de9f8ed8f70e28dbc585;hb=f9be95f867745b6754b2402b9b72f9eaeabd637f;hp=5a088c25f32579ac0b81b5ead2509cc84ce6c44a;hpb=b6c22027863f55fdd8e112439a504d603d664b98;p=oota-llvm.git diff --git a/docs/CMake.html b/docs/CMake.html index 5a088c25f32..d83e3ad5456 100644 --- a/docs/CMake.html +++ b/docs/CMake.html @@ -15,13 +15,17 @@
  • Quick start
  • Basic CMake usage
  • Options and variables -
    @@ -63,7 +67,7 @@
      -
    1. Download +

    2. Download and install CMake. Version 2.6.2 is the minimum required.

    3. Open a shell. Your development tools must be reachable from this @@ -176,7 +180,7 @@

    Variables are stored on the CMake cache. This is a file - named CMakeCache.txt on the root of the build + named CMakeCache.txt on the root of the build directory. Do not hand-edit it.

    Variables are listed here appending its type after a colon. It is @@ -199,13 +203,13 @@

    Here are listed some of the CMake variables that are used often, along with a brief explanation and LLVM-specific notes. For full documentation, check the CMake docs or execute cmake - --help-variable VARIABLE_NAME. + --help-variable VARIABLE_NAME.

    CMAKE_BUILD_TYPE:STRING
    Sets the build type for make based generators. Possible - values are Release, Debug, RelWithDebInfo and MiniSizeRel. On + values are Release, Debug, RelWithDebInfo and MinSizeRel. On systems like Visual Studio the user sets the build type with the IDE settings.
    @@ -213,6 +217,11 @@
    Path where LLVM will be installed if "make install" is invoked or the "INSTALL" target is built.
    +
    LLVM_LIBDIR_SUFFIX:STRING
    +
    Extra suffix to append to the directory where libraries are to + be installed. On a 64-bit architecture, one could use + -DLLVM_LIBDIR_SUFFIX=64 to install libraries to /usr/lib64.
    +
    CMAKE_C_FLAGS:STRING
    Extra flags to use when compiling C source files.
    @@ -241,22 +250,35 @@ to X86. On the other cases defaults to all. Example: -DLLVM_TARGETS_TO_BUILD="X86;PowerPC;Alpha". +
    LLVM_BUILD_TOOLS:BOOL
    +
    Build LLVM tools. Defaults to ON.
    + +
    LLVM_BUILD_EXAMPLES:BOOL
    +
    Build LLVM examples. Defaults to ON.
    +
    LLVM_ENABLE_THREADS:BOOL
    Build with threads support, if available. Defaults to ON.
    +
    LLVM_ENABLE_ASSERTIONS:BOOL
    +
    Enables code assertions. Defaults to OFF if and only if + CMAKE_BUILD_TYPE is Release.
    +
    LLVM_ENABLE_PIC:BOOL
    -
    Add the -fPIC flag to the compiler command-line, if the - compiler supports this flag. Some systems, like Windows, does not - need this flag. Defaults to OFF.
    +
    Add the -fPIC flag for the compiler command-line, if the + compiler supports this flag. Some systems, like Windows, do not + need this flag. Defaults to ON.
    LLVM_BUILD_32_BITS:BOOL
    Build 32-bits executables and libraries on 64-bits systems. This option is available only on some 64-bits unix systems. Defaults to OFF.
    -
    LLVM_PLO_FLAGS:STRING
    -
    Extra flags for creating partially linked objects. Visual C++ - does not use this.
    +
    LLVM_TARGET_ARCH:STRING
    +
    LLVM target to use for native code generation. This is required + for JIT generation. It defaults to "host", meaning that it shall + pick the architecture of the machine where LLVM is being built. If + you are cross-compiling, set it to the target architecture + name.
    LLVM_TABLEGEN:STRING
    Full path to a native TableGen executable (usually @@ -288,7 +310,16 @@
    -

    TODO

    +

    See this + wiki page for generic instructions on how to cross-compile + with CMake. It goes into detailed explanations and may seem + daunting, but it is not. On the wiki page there are several + examples including toolchain files. Go directly to + this + section for a quick solution.

    + +

    Also see the LLVM-specific variables + section for variables used when cross-compiling.

    @@ -306,16 +337,30 @@ + + + + +
    + +

    Notes for specific compilers and/or platforms.

    + +
    + + +
    Valid CSS! + src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"> Valid HTML 4.01! + src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"> Oscar Fuentes
    LLVM Compiler Infrastructure
    - Last modified: $Date: 2008-10-27 00:59:36 +0100 (Mon, 27 Oct 2008) $ + Last modified: $Date: 2008-12-31 03:59:36 +0100 (Wed, 31 Dec 2008) $