aboutsummaryrefslogtreecommitdiff
path: root/flang/README.md
diff options
context:
space:
mode:
authorSteve Scalpone <sscalpone@gmail.com>2019-03-20 14:09:35 -0700
committerSteve Scalpone <sscalpone@gmail.com>2019-03-20 14:09:35 -0700
commitb6ca16ed2d28262915401cb4f21c3b76a25e1a18 (patch)
treea0960e188b546b70adb8f869f8f7ecb6992d9d19 /flang/README.md
parentc90ce54ce3a2de07f0bb00389c37f6dbf81ec930 (diff)
downloadllvm-b6ca16ed2d28262915401cb4f21c3b76a25e1a18.zip
llvm-b6ca16ed2d28262915401cb4f21c3b76a25e1a18.tar.gz
llvm-b6ca16ed2d28262915401cb4f21c3b76a25e1a18.tar.bz2
[flang] Reorder the advice about putting GCC bin and lib on
the PATH and LD_LIBRARY_PATH. Add concrete example. Original-commit: flang-compiler/f18@88c34fbe86025cc15d93c2e331a4ceae0d7fe725 Reviewed-on: https://github.com/flang-compiler/f18/pull/344
Diffstat (limited to 'flang/README.md')
-rw-r--r--flang/README.md14
1 files changed, 6 insertions, 8 deletions
diff --git a/flang/README.md b/flang/README.md
index 60e894c..0b756e1 100644
--- a/flang/README.md
+++ b/flang/README.md
@@ -4,7 +4,7 @@ Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
# F18
-F18 is a ground-up implementation of a Fortran frontend written in modern C++.
+F18 is a ground-up implementation of a Fortran front end written in modern C++.
F18, when combined with LLVM, is intended to replace the Flang compiler.
Flang is a Fortran compiler targeting LLVM.
@@ -127,16 +127,14 @@ is the path to a clang installation with bin, lib, etc:
```
cmake -DBUILD_WITH_CLANG=<CLANG_DIRECTORY>
```
-
-To use f18 after it is built,
-the environment variables PATH and LD_LIBRARY_PATH
-must be set to use GCC and its associated libraries.
-
Or GCC can be defined on the f18 cmake command line
where `<GCC_DIRECTORY>` is the path to a GCC installation with bin, lib, etc:
```
cmake -DGCC=<GCC_DIRECTORY> ...
```
+To use f18 after it is built,
+the environment variables PATH and LD_LIBRARY_PATH
+must be set to use GCC and its associated libraries.
### Installation Directory
@@ -163,7 +161,7 @@ Release builds execute quickly.
### Build F18
```
-cd where/you/want/to/build
-cmake <your custom options> where/you/put/the/source/f18
+cd ~/f18/build
+cmake -DLLVM_DIR=$LLVM ~/f18/src
make
```