diff options
author | Mark Doffman <mark.doffman@codethink.co.uk> | 2015-03-11 15:11:18 +0000 |
---|---|---|
committer | Mark Doffman <mark.doffman@codethink.co.uk> | 2015-03-11 15:11:18 +0000 |
commit | 7d593cf14b6df28480d915e4cb812268f429f49c (patch) | |
tree | 14bce320d239f4b9d9996fe368fce153bca955f3 | |
parent | 53d8407f1a6cbf75b3d40126a6ca9b17fe5b1bdb (diff) | |
download | flang-7d593cf14b6df28480d915e4cb812268f429f49c.tar.gz |
Update README for new build instructions.
-rw-r--r-- | README.txt | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/README.txt b/README.txt index 5557b765c4..fbe52db4b6 100644 --- a/README.txt +++ b/README.txt @@ -11,15 +11,34 @@ Flang is a Fortran front-end. // Compiling Flang (master branch) //===----------------------------------------------------------------------===// -Flang depends on a fork of clang for some of its files. In order to compile -Flang, you'll need to fetch the clang_branch and merge it with master in your -local repository. After cloning flang, you can use the following commands to achieve this: - - git fetch origin clang_branch - git checkout clang_branch - git checkout master - git merge --squash --no-commit clang_branch - git reset HEAD +Download LLVM source and move to a branch with a reference known to work with +Flang. + +> git clone https://github.com/llvm-mirror/llvm.git +> cd llvm +> git checkout -t origin/release_36 + +Download the Flang source code within the LLVM tree, the two will be compiled +together. + +> cd tools & git clone git://github.com/CodethinkLabs/flang.git + +Compile LLVM and Flang together. + +> mkdir build +> cd build & cmake ../ -DCMAKE_INSTALL_PREFIX=/usr +> cd build & make +> cd build & make install + +You will also need to install the Flang standard library, which the Flang +compiler links to by default. This is built outside the LLVM tree. + +> git clone git://github.com/CodethinkLabs/libflangrt.git +> cd libflangrt +> mkdir build +> cd build & cmake ../ -DCMAKE_INSTALL_PREFIX=/usr +> cd build & make +> cd build & make install //===----------------------------------------------------------------------===// // Using flang |