[flang] updated build instructions in README.md
authorStephane Chauveau <stephane@chauveau-central.net>
Thu, 8 Feb 2018 13:57:51 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2018 09:09:20 +0000 (10:09 +0100)
Original-commit: flang-compiler/f18@0fea8bd042469738ab08bdc95fc46b24c6fac3ad
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false

flang/README.md

index 65617d7..f827347 100644 (file)
@@ -1,13 +1,19 @@
 # f18
 
+## Selection of the C/C++ compiler
+
+   export CXX=.../the/path/to/g++ 
+   export CC=.../the/path/to/gcc    
+   
 ## Installation of LLVM 5.0    
     
     ############ Extract LLVM, CLANG and other from git in current directory. 
     ############         
-    ############ Remark
+    ############ Question
     ############    Do we need the Clang sources for F18? 
     ############    Probably not but its nice to have the Clang source as 
-    ############    example during development.
+    ############    example during development. 
+    ############    Also, we need cland-format.
     ############
     ############        
     
     
     mkdir $ROOT/llvm/build
     cd  $ROOT/llvm/build 
-    cmake CMAKE_INSTALL_PREFIX=$PREFIX 
+    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX ..
     make -j 4
     make install
     
-## 
-    ######### Add $PREFIX/bin to PATH 
+## Installation of Flang 
+    ######### Add $PREFIX/bin to PATH to find llvm-config executable
+    
+    export "PATH=$PREFIX/bin:$PATH"
     
+    ######## Get Flang sources 
+    git clone https://github.com/ThePortlandGroup/f18.git
     
+    ######## Create a build directory for f18 
+    mkdir $ROOT/f18-build
+    cd $ROOT/f18-build
+    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX ../f18 
+    make -j 4
+
+
+