Skip to content

Instantly share code, notes, and snippets.

@mxpv
Created April 18, 2013 09:29
Show Gist options
  • Save mxpv/5411438 to your computer and use it in GitHub Desktop.
Save mxpv/5411438 to your computer and use it in GitHub Desktop.
Building Clang

Building Clang

  • Checkout LLVM:

  • Checkout Clang:

  • Run CMake to generate the Visual Studio solution and project files:

    • cd .... (back to where you started)
    • mkdir build (for building without polluting the source dir)
    • cd build
    • cmake -G "Visual Studio 11 Win64" ..\llvm
    • The above, if successful, will have created an LLVM.sln file in the build directory.
  • Build Clang:

    • Open LLVM.sln in Visual Studio.
    • Build the "clang" project for just the compiler driver and front end, or the "ALL_BUILD" project to build everything, including tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment