summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strata/swift.morph1
-rw-r--r--strata/swift/gf-complete.morph20
2 files changed, 21 insertions, 0 deletions
diff --git a/strata/swift.morph b/strata/swift.morph
index 756c277..6045727 100644
--- a/strata/swift.morph
+++ b/strata/swift.morph
@@ -20,6 +20,7 @@ chunks:
ref: a380246762c16ea8eb7dbfccd50d296c3743b39e
unpetrify-ref: v1.0.7
- name: gf-complete
+ morph: strata/swift/gf-complete.morph
repo: upstream:gf-complete
ref: 715443661c00558fe32f004a4be5f93f341b6e59
unpetrify-ref: v2
diff --git a/strata/swift/gf-complete.morph b/strata/swift/gf-complete.morph
new file mode 100644
index 0000000..e8965c7
--- /dev/null
+++ b/strata/swift/gf-complete.morph
@@ -0,0 +1,20 @@
+name: gf-complete
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- ./autogen.sh
+configure-commands:
+- |
+ cpu="$(echo $TARGET | cut -d '-' -f 1)"
+ case "$cpu" in
+ x86_64)
+ SSE=
+ ;;
+ *)
+ # Disable SSE4 for any architecture which are not x86_64 bits
+ # see more information about architecture which support SSE in
+ # https://en.wikipedia.org/wiki/SSE4#Supporting_CPUs.
+ SSE=--disable-sse
+ ;;
+ esac
+ ./configure --prefix="$PREFIX" "$SSE"