summaryrefslogtreecommitdiff
path: root/strata/llvm-common/llvm.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/llvm-common/llvm.morph')
-rw-r--r--strata/llvm-common/llvm.morph27
1 files changed, 20 insertions, 7 deletions
diff --git a/strata/llvm-common/llvm.morph b/strata/llvm-common/llvm.morph
index dca81043..08c32fa5 100644
--- a/strata/llvm-common/llvm.morph
+++ b/strata/llvm-common/llvm.morph
@@ -1,11 +1,24 @@
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 build/
+ cd build/
+
+ CC=gcc CXX=g++ \
+ cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \
+ -DLLVM_ENABLE_FFI=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
+ -Wno-dev ..
+build-commands:
+- |
+ cd build/
+ make
+install-commands:
+- |
+ cd build/
+ make DESTDIR="$DESTDIR" install