From: Steve Scalpone Date: Wed, 20 Mar 2019 21:09:35 +0000 (-0700) Subject: [flang] Reorder the advice about putting GCC bin and lib on X-Git-Tag: llvmorg-12-init~9537^2~1581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6ca16ed2d28262915401cb4f21c3b76a25e1a18;p=platform%2Fupstream%2Fllvm.git [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 --- 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= ``` - -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 `` is the path to a GCC installation with bin, lib, etc: ``` cmake -DGCC= ... ``` +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 where/you/put/the/source/f18 +cd ~/f18/build +cmake -DLLVM_DIR=$LLVM ~/f18/src make ```