summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2017-07-01 16:39:54 (GMT)
committerJavier Jardón <jjardon@gnome.org>2017-07-01 16:39:54 (GMT)
commitee59172aa4b295936eb378007db811871882f7b1 (patch)
tree9741311bbb5c53573eeb8ff39e3cf68693ca9442
parenta1e5dbbdb3d3f3df39d72f73e9db2a22709f407f (diff)
downloaddefinitions-jjardon/staging/sam/gcc7.1-bootstrap-fix.tar.gz
strata/llvm-common/llvm.morph: Use cmake instead autotoolsjjardon/staging/sam/gcc7.1-bootstrap-fix
-rw-r--r--strata/llvm-common/llvm.morph19
1 files changed, 12 insertions, 7 deletions
diff --git a/strata/llvm-common/llvm.morph b/strata/llvm-common/llvm.morph
index dca8104..d46b6bb 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 ..