Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2013 09:29
What would you like to do?
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