Skip to content

Commit

Permalink
[flang] Reorder the advice about putting GCC bin and lib on
Browse files Browse the repository at this point in the history
the PATH and LD_LIBRARY_PATH. Add concrete example.

Original-commit: flang-compiler/f18@88c34fb
Reviewed-on: flang-compiler/f18#344
  • Loading branch information
sscalpone committed Mar 20, 2019
1 parent c90ce54 commit b6ca16e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions flang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand All @@ -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
```

0 comments on commit b6ca16e

Please sign in to comment.