[flang] add preliminary README file
authorStephane Chauveau <stephane@chauveau-central.net>
Thu, 8 Feb 2018 13:48:30 +0000 (14:48 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2018 09:09:20 +0000 (10:09 +0100)
Original-commit: flang-compiler/f18@1fc60916fbc3339056fe889e8ac50a2906387c49
Reviewed-on: https://github.com/flang-compiler/f18/pull/6
Tree-same-pre-rewrite: false

flang/README.md

index 0f9f32b..65617d7 100644 (file)
@@ -1 +1,63 @@
 # f18
+
+## Installation of LLVM 5.0    
+    
+    ############ Extract LLVM, CLANG and other from git in current directory. 
+    ############         
+    ############ Remark: 
+    ############    Do we need the Clang sources for F18? 
+    ############    Probably not but its nice to have the Clang source as 
+    ############    example during development.
+    ############
+    ############        
+    
+    ROOT=$(pwd)
+    REL=release_50
+    
+    git clone https://git.llvm.org/git/llvm.git/
+    cd llvm/
+    git checkout $REL
+    
+    cd $ROOT/llvm/tools
+    git clone https://git.llvm.org/git/clang.git/
+    git checkout $REL
+    
+    cd $ROOT/llvm/projects
+    git clone https://git.llvm.org/git/openmp.git/ 
+    cd openmp
+    git checkout $REL
+    
+    cd $ROOT/llvm/projects
+    git clone https://git.llvm.org/git/libcxx.git/
+    cd libcxx
+    git checkout $REL
+    
+    cd $ROOT/llvm/projects
+    git clone https://git.llvm.org/git/libcxxabi.git/
+    cd libcxxabi
+    git checkout $REL
+    
+    # List the version of all git sub-directories 
+    # They should all match $REL
+    for dir in $(find "$ROOT" -name .git) ; do 
+      cd $dir/.. ; 
+      printf " %-15s %s\n" "$(git rev-parse --abbrev-ref HEAD)" "$(pwd)" ; 
+    done
+    
+    
+    ###########  Build LLVM & CLANG in $PREFIX 
+        
+    PREFIX=$ROOT/usr
+    mkdir $PREFIX
+    
+    mkdir $ROOT/llvm/build
+    cd  $ROOT/llvm/build 
+    cmake CMAKE_INSTALL_PREFIX=$PREFIX 
+    make -j 4
+    make install
+    
+## 
+    ######### Add $PREFIX/bin to PATH 
+    
+    
+