Source
Compiler sources are on Github: github.com/llvm-fortran/fort.
Building Fort together with LLVM
- Get required tools
- C/C++ compiler, see LLVM System Requirements
- CMake for builds, get it at cmake.org/download
- Python for running tests, get it at python.org/download
makeis assumed to be present, but you can use other CMake generators
- Get LLVM
git clone https://github.com/llvm-mirror/llvm.git
- Checkout Fort inside of LLVM source tree
cd llvm/toolsgit clone https://github.com/llvm-fortran/fort.git
- Build
mkdir build(in-source builds are not supported)cd buildcmake ../llvmmake
Building Fort outside of LLVM source tree
- Get, build, and install LLVM from source
- Get Fort
git clone https://github.com/llvm-fortran/fort.git
- Build
- Make sure that
binsubdirectory of LLVM installation is on thePATH mkdir buildcd buildcmake ../fortmake
- Make sure that
