[flang] Copyediting of README.md.

Original-commit: flang-compiler/f18@32ffc711b6
Reviewed-on: https://github.com/flang-compiler/f18/pull/84
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2018-05-07 14:39:36 -07:00
parent 9a1e4ee82c
commit 1e036b2111
1 changed files with 18 additions and 18 deletions

View File

@ -6,25 +6,25 @@ Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
## Selection of the C/C++ compiler ## Selection of the C/C++ compiler
F18 requires a C++17 compiler. As of today, the code was only tested with g++ F18 requires a C++17 compiler. The code has been tested with g++
7.2.0, g++ 7.3.0 and clang 6.0. 7.2.0, g++ 7.3.0, and clang 6.0.
For a proper installation, we assume that the PATH and LD_LIBRARY_PATH environment variables For a proper installation, we assume that the PATH and LD_LIBRARY_PATH environment variables
are properly set to use gcc, g++ and the associated libraries. are properly set to use gcc, g++ and the associated libraries.
cmake will require that the environement variables CC and CXX are properly set (else it will cmake will require that the environment variables CC and CXX are properly set (else it would
search for use the 'cc' and 'c++' program which are likely /usr/bin/cc and /usr/bin/c++) that search for the 'cc' and 'c++' commands which are likely /usr/bin/cc and /usr/bin/c++).
can be done now or while calling cmake That can be done now or while calling cmake.
export CC=gcc export CC=gcc
export CXX=g++ export CXX=g++
## Installation of LLVM & CLANG 6.0 ## Installation of LLVM & CLANG 6.0
F18 depends of the LLVM & CLANG libraries even when clang is not used as C++ compiler. F18 depends on the LLVM & CLANG libraries even when clang is not used as C++ compiler.
If those libraries are not provided by your system then you may want to follow the If those libraries are not provided by your system, then you may want to follow the
build instructions at https://clang.llvm.org/get_started.html build instructions at https://clang.llvm.org/get_started.html .
## Installation of F18 ## Installation of F18
@ -36,12 +36,12 @@ build instructions at https://clang.llvm.org/get_started.html
cd $ROOT cd $ROOT
git clone https://github.com/ThePortlandGroup/f18.git git clone https://github.com/ThePortlandGroup/f18.git
######## And build it in a dedicated directory ######## And build f18 in a dedicated directory
######## Reminder: If LLVM & Clang where not installed in a standard ######## Reminder: If LLVM & Clang were not installed in a standard
######## location then you may also have to specify it via the ######## location, then you may also have to specify it via the
######## CMAKE_MODULE_PATH or CMAKE_PREFIX_PATH variables. ######## CMAKE_MODULE_PATH or CMAKE_PREFIX_PATH variables.
mkdir $ROOT/f18-build mkdir $ROOT/f18-build
cd $ROOT/f18-build cd $ROOT/f18-build
CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$F18_PREFIX $ROOT/f18 CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$F18_PREFIX $ROOT/f18
make -j 4 make -j 8
make install make install