2019-08-03 12:06:11 +02:00
|
|
|
name: llvm-8
|
2019-08-26 05:35:43 +02:00
|
|
|
version: 8.0.1
|
2019-08-03 12:06:11 +02:00
|
|
|
release: 1
|
2019-08-26 05:35:43 +02:00
|
|
|
sources: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
|
2019-08-03 12:06:11 +02:00
|
|
|
dependencies:
|
|
|
|
- libffi
|
|
|
|
|
2019-09-06 00:07:14 +02:00
|
|
|
build-dependencies: python
|
|
|
|
|
2019-08-03 12:06:11 +02:00
|
|
|
@configure
|
2019-08-24 19:29:49 +02:00
|
|
|
mkdir %{name}-%{version}
|
2019-09-06 00:07:14 +02:00
|
|
|
cd %{name}-%{version} && \
|
|
|
|
cmake ../llvm-%{version}.src \
|
2019-09-06 00:14:04 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr/bad/%{name} \
|
2019-09-06 00:07:14 +02:00
|
|
|
-DLLVM_BUILD_DOCS=OFF\
|
|
|
|
-DLLVM_BUILD_EXAMPLES=OFF \
|
|
|
|
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \
|
|
|
|
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
|
|
|
-DLLVM_ENABLE_ASSERTIONS=OFF \
|
|
|
|
-DLLVM_ENABLE_CXX1Y=ON \
|
|
|
|
-DLLVM_ENABLE_FFI=ON \
|
|
|
|
-DLLVM_ENABLE_LIBCXX=OFF \
|
|
|
|
-DLLVM_ENABLE_PIC=ON \
|
|
|
|
-DLLVM_ENABLE_RTTI=ON \
|
|
|
|
-DLLVM_ENABLE_SPHINX=OFF \
|
|
|
|
-DLLVM_ENABLE_TERMINFO=ON \
|
|
|
|
-DLLVM_ENABLE_ZLIB=ON \
|
|
|
|
-DLLVM_INCLUDE_EXAMPLES=OFF \
|
|
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_CXX_FLAGS="-fPIC -O2" \
|
|
|
|
-DCMAKE_C_FLAGS="-fPIC -O2"
|