milis/talimatname/genel/l/llvm/talimat

40 lines
800 B
Plaintext
Raw Permalink Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: LLVM derleyicisi
2018-08-08 14:18:27 +02:00
# URL: http://llvm.org/
# Paketçi: milisarge
# Gerekler: python cmake
# Grup: geliştirme
2018-06-09 00:06:58 +02:00
isim=llvm
2018-07-11 16:38:59 +02:00
surum=4.0.0
2018-06-09 00:06:58 +02:00
devir=1
2018-07-11 16:38:59 +02:00
kaynak=(http://llvm.org/releases/$surum/$isim-$surum.src.tar.xz \
2018-06-09 00:06:58 +02:00
llvm-config.h)
derle() {
2018-07-11 16:38:59 +02:00
export CC=gcc
export CXX=g++
cd $isim-$surum.src
mkdir build
cd build
cmake -DLLVM_ENABLE_CXX1Y=1 \
-DLLVM_INCLUDE_EXAMPLES=0 \
-DLLVM_INCLUDE_TESTS=0 \
-DLLVM_ENABLE_OCAMLDOC=0 \
-DLLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF' \
-DLLVM_BUILD_LLVM_DYLIB=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr ..
MAKEFLAGS="$MAKEFLAGS" make
make DESTDIR=$PKG install
# multilib stub
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/
2018-06-09 00:06:58 +02:00
}