Posted to tcl by jima at Fri Feb 16 22:05:17 GMT 2018view raw

  1. export tisLlvmVer=RELEASE_381
  2.  
  3. export tisBuiPlatFlav_llvm=$tisBuiPlatFlav/llvm
  4. export tisInsPlatFlav_llvm=$tisInsPlatFlav/$tisTgtdir
  5.  
  6. if [ ! -d $tisBuiPlatFlav_llvm ]; then
  7. echo creating $tisBuiPlatFlav_llvm
  8. mkdir $tisBuiPlatFlav_llvm
  9. fi
  10.  
  11.  
  12. cd $tisBuiPlatFlav_llvm
  13. svn co http://llvm.org/svn/llvm-project/llvm/tags/${tisLlvmVer}/final llvm
  14.  
  15. cd $tisBuiPlatFlav_llvm
  16. cd llvm/tools
  17. svn co http://llvm.org/svn/llvm-project/cfe/tags/${tisLlvmVer}/final clang
  18.  
  19. cd $tisBuiPlatFlav_llvm
  20. cd llvm/projects
  21. svn co http://llvm.org/svn/llvm-project/compiler-rt/tags/${tisLlvmVer}/final compiler-rt
  22.  
  23. cd $tisBuiPlatFlav_llvm
  24. mkdir build
  25. cd build
  26. ../llvm/configure --prefix=$tisInsPlatFlav_llvm --enable-optimized --enable-assertions
  27. make
  28. make check-all
  29. make install