From ee59172aa4b295936eb378007db811871882f7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Sat, 1 Jul 2017 17:39:54 +0100 Subject: strata/llvm-common/llvm.morph: Use cmake instead autotools --- strata/llvm-common/llvm.morph | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/strata/llvm-common/llvm.morph b/strata/llvm-common/llvm.morph index dca81043..d46b6bbb 100644 --- a/strata/llvm-common/llvm.morph +++ b/strata/llvm-common/llvm.morph @@ -1,11 +1,16 @@ name: llvm kind: chunk description: Low Level Virtual Machine -build-system: autotools +build-system: cmake configure-commands: -- ./configure --prefix="$PREFIX" --sysconfdir=/etc - --enable-shared - --enable-targets=host - --enable-optimized - --disable-assertions - --with-python=/usr/bin/python3 +- | + mkdir -p build + cd build + + CC=gcc CXX=g++ \ + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DLLVM_ENABLE_FFI=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_BUILD_LLVM_DYLIB=ON \ + -DLLVM_TARGETS_TO_BUILD="host" \ + -Wno-dev .. -- cgit v1.2.1