kosh

makefile_llvm.bat

Feb 23rd, 2013
87
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×