2019-08-27 14:22:49 +02:00
|
|
|
name: llvm
|
|
|
|
version: 8.0.1
|
2019-09-04 13:33:55 +02:00
|
|
|
release: 2
|
2019-11-05 02:02:20 +01:00
|
|
|
sources:
|
|
|
|
- https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
|
|
|
|
- labs.h
|
|
|
|
|
2019-08-27 14:22:49 +02:00
|
|
|
dependencies:
|
|
|
|
- libffi
|
2019-11-05 02:02:20 +01:00
|
|
|
- libcxx
|
2019-08-27 14:22:49 +02:00
|
|
|
|
2019-11-05 02:02:20 +01:00
|
|
|
build-dependencies: python, libcxx-dev
|
2019-09-05 23:58:45 +02:00
|
|
|
|
2019-08-27 14:22:49 +02:00
|
|
|
@configure
|
|
|
|
mkdir %{name}-%{version}
|
2019-11-05 02:02:20 +01:00
|
|
|
|
2019-08-27 14:22:49 +02:00
|
|
|
cd %{name}-%{version} && \
|
|
|
|
cmake ../llvm-%{version}.src \
|
2019-09-04 13:33:55 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX="%{prefix}" \
|
2019-08-27 14:22:49 +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_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 \
|
2019-11-05 02:02:20 +01:00
|
|
|
-DLLVM_ENABLE_LIBCXX=ON \
|
|
|
|
-DCMAKE_CXX_COMPILER="clang++" \
|
|
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS -stdlib=libc++ -include /usr/weirdos/include/c++/v1/math.h -include $(pwd)/../labs.h -D__DEFINED_max_align_t" \
|
|
|
|
-DCMAKE_C_FLAGS="$CFLAGS" \
|
|
|
|
-DCMAKE_LD_FLAGS="$LDFLAGS -lc++"
|
2019-08-27 14:22:49 +02:00
|
|
|
|
|
|
|
# when llvm-8 won't be the lastest LLVM version anymore
|
|
|
|
# -DCMAKE_INSTALL_PREFIX=/usr/bad/%{name}
|