derle.sh 635 B

12345678910111213141516171819202122232425262728
  1. export CC=gcc
  2. export CXX=g++
  3. cd $isim-$surum.src
  4. mkdir build
  5. cd build
  6. cmake .. -G Ninja \
  7. -DCMAKE_BUILD_TYPE=Release \
  8. -DCMAKE_INSTALL_PREFIX=/usr \
  9. -DLLVM_HOST_TRIPLE=$CHOST \
  10. -DLLVM_BUILD_LLVM_DYLIB=ON \
  11. -DLLVM_LINK_LLVM_DYLIB=ON \
  12. -DLLVM_INSTALL_UTILS=ON \
  13. -DLLVM_ENABLE_RTTI=ON \
  14. -DLLVM_ENABLE_FFI=ON \
  15. -DLLVM_INCLUDE_EXAMPLES=OFF \
  16. -DLLVM_INCLUDE_TESTS=OFF \
  17. -DLLVM_BUILD_DOCS=OFF \
  18. -DLLVM_ENABLE_SPHINX=OFF \
  19. -DLLVM_ENABLE_DOXYGEN=OFF \
  20. -DLLVM_ENABLE_OCAMLDOC=OFF \
  21. -DSPHINX_WARNINGS_AS_ERRORS=OFF \
  22. -DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \
  23. -DLLVM_BINUTILS_INCDIR=/usr/include
  24. ninja all