SHARE
TWEET

makefile_llvm.bat

kosh Feb 23rd, 2013 36 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3.  
  4. rem Clang/LLVM をMinGWでコンパイルする手順
  5. rem 詳しくは公式サイト: http://clang.llvm.org/get_started.html
  6. rem Libxml2, Subversion は導入しなくても何とかなる(たぶん)
  7.  
  8. set llvm_src=..\llvm
  9. set msysroot=C:\MinGW\msys\1.0
  10.  
  11. path %WINDIR%\system32;
  12. path %PATH%;C:\MinGW\bin
  13. path %PATH%;%PROGRAMFILES%\Gow\bin
  14. path %PATH%;%PROGRAMFILES%\SlikSvn\bin
  15. path %PATH%;%USERPROFILE%\opt\cmake\bin
  16. path %PATH%;%USERPROFILE%\opt\PortablePython_2.7.3.2\App
  17. path %PATh%;%msysroot%\local\bin
  18.  
  19. set opt=^
  20. -DCMAKE_INSTALL_PREFIX=%msysroot%\local\llvm ^
  21. -DCMAKE_BUILD_TYPE=Release ^
  22. -DLLVM_TARGETS_TO_BUILD=X86 ^
  23. -DLIBXML2_INCLUDE_DIR=%msysroot%\local\include\libxml2 ^
  24. -DLIBXML2_LIBRARIES=%msysroot%\local\lib\libxml2.lib
  25.  
  26. rem cmake -G "MinGW Makefiles" %opt% "%llvm_src%"
  27. mingw32-make
  28. mingw32-make check
  29. mingw32-make install
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top