Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.75 KB

hacking.md

File metadata and controls

45 lines (37 loc) · 1.75 KB
layout title permalink
page
Source
/hacking/

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