From c77e7885f71aa3f5890d3f13c5034aa6b26e4e60 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Tue, 27 Aug 2019 14:22:49 +0200 Subject: [PATCH] New recipe: llvm (latest release). --- llvm/recipe.spec | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 llvm/recipe.spec diff --git a/llvm/recipe.spec b/llvm/recipe.spec new file mode 100644 index 0000000..6e222c2 --- /dev/null +++ b/llvm/recipe.spec @@ -0,0 +1,37 @@ +name: llvm +version: 8.0.1 +release: 1 +sources: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz +dependencies: + - libffi + +@configure + mkdir %{name}-%{version} + cd %{name}-%{version} && \ + cmake ../llvm-%{version}.src \ + -DCMAKE_INSTALL_PREFIX=/usr/weirdos/%{name} \ + -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" + + # when llvm-8 won't be the lastest LLVM version anymore + # -DCMAKE_INSTALL_PREFIX=/usr/bad/%{name} + +@build + cd %{name}-%{version} + make -j 4