Source

Compiler sources are on Github: github.com/llvm-fortran/fort.

Building Fort together with LLVM

  1. Get required tools
  2. Get LLVM
    • git clone https://github.com/llvm-mirror/llvm.git
  3. Checkout Fort inside of LLVM source tree
    • cd llvm/tools
    • git clone https://github.com/llvm-fortran/fort.git
  4. Build
    • mkdir build (in-source builds are not supported)
    • cd build
    • cmake ../llvm
    • make

Building Fort outside of LLVM source tree

  1. Get, build, and install LLVM from source
  2. Get Fort
    • git clone https://github.com/llvm-fortran/fort.git
  3. Build
    • Make sure that bin subdirectory of LLVM installation is on the PATH
    • mkdir build
    • cd build
    • cmake ../fort
    • make

Fork me on GitHub