summaryrefslogtreecommitdiff
path: root/strata
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-06-23 10:29:47 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-11-19 14:52:21 +0000
commit0f6eb4e0b91132e3eefa9b43b86b80892f323b84 (patch)
treea7ede07f2e24ca2f7e1390e38165d39092d661aa /strata
parent3feab8a7e42b3fa4a006c101108df1d8b318f66e (diff)
downloaddefinitions-0f6eb4e0b91132e3eefa9b43b86b80892f323b84.tar.gz
Add the clang compiler
Change-Id: I623542335fa4a3444cf8fc500865f3847a7ec966
Diffstat (limited to 'strata')
-rw-r--r--strata/compilers-extra.morph17
-rw-r--r--strata/compilers-extra/clang.morph10
-rw-r--r--strata/compilers-extra/compiler-rt.morph10
3 files changed, 37 insertions, 0 deletions
diff --git a/strata/compilers-extra.morph b/strata/compilers-extra.morph
new file mode 100644
index 00000000..e96be69e
--- /dev/null
+++ b/strata/compilers-extra.morph
@@ -0,0 +1,17 @@
+name: compilers-extra
+kind: stratum
+description: |
+ Extra compilers in addition to the ones in build-essential
+build-depends:
+- morph: strata/llvm-common.morph
+chunks:
+- name: clang
+ morph: strata/compilers-extra/clang.morph
+ repo: upstream:clang
+ ref: 40b68b4c02b9d9e1e4138815747adf5589496240
+ unpetrify-ref: release_37
+- name: compiler-rt
+ morph: strata/compilers-extra/compiler-rt.morph
+ repo: upstream:compiler-rt
+ ref: b5214093d4c91ed5352d35ee9126665fabfa97fe
+ unpetrify-ref: release_37
diff --git a/strata/compilers-extra/clang.morph b/strata/compilers-extra/clang.morph
new file mode 100644
index 00000000..fb7c1ff6
--- /dev/null
+++ b/strata/compilers-extra/clang.morph
@@ -0,0 +1,10 @@
+name: clang
+kind: chunk
+build-system: cmake
+configure-commands:
+- mkdir o
+- cd o && cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" -DCMAKE_BUILD_TYPE=Release ..
+build-commands:
+- cd o && make
+install-commands:
+- cd o && make DESTDIR="$DESTDIR" install
diff --git a/strata/compilers-extra/compiler-rt.morph b/strata/compilers-extra/compiler-rt.morph
new file mode 100644
index 00000000..a1c9085b
--- /dev/null
+++ b/strata/compilers-extra/compiler-rt.morph
@@ -0,0 +1,10 @@
+name: compiler-rt
+kind: chunk
+build-system: cmake
+configure-commands:
+- mkdir o
+- cd o && cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" -DCMAKE_BUILD_TYPE=Release ..
+build-commands:
+- cd o && make
+install-commands:
+- cd o && make DESTDIR="$DESTDIR" install