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
make
is 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/tools
git clone https://github.com/llvm-fortran/fort.git
- Build
mkdir build
(in-source builds are not supported)cd build
cmake ../llvm
make
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
bin
subdirectory of LLVM installation is on thePATH
mkdir build
cd build
cmake ../fort
make
- Make sure that