aboutsummaryrefslogtreecommitdiff
path: root/patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch')
-rw-r--r--patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch b/patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch
new file mode 100644
index 0000000..52d9346
--- /dev/null
+++ b/patches/0001-Use-clang-with-OpenBSD-since-their-ancient-gcc-creat.patch
@@ -0,0 +1,19 @@
+# From abf7d0c282eae412159fef36ef85f08d333dff6b Mon Sep 17 00:00:00 2001
+# From: Steve Mynott <steve.mynott@gmail.com>
+# Date: Fri, 22 Jun 2018 16:07:08 +0100
+# Subject: [PATCH] Use clang with OpenBSD since their ancient gcc creates a moar
+# which can't generate NQP anymore.
+#
+#See #878
+
+--- ../MoarVM/build/setup.pm
++++ ../MoarVM/build/setup.pm
+@@ -583,7 +583,7 @@ our %SYSTEMS = (
+ linux => [ qw( posix gnu gcc ), { %OS_LINUX } ],
+ aix => [ qw( posix gnu gcc ), { %OS_AIX } ],
+ darwin => [ qw( posix gnu clang ), { %OS_DARWIN } ],
+- openbsd => [ qw( posix bsd gcc ), { %OS_OPENBSD} ],
++ openbsd => [ qw( posix bsd clang ), { %OS_OPENBSD} ],
+ netbsd => [ qw( posix bsd gcc ), { %OS_NETBSD } ],
+ dragonfly => [ qw( posix bsd gcc ), { %OS_DRAGONFLY } ],
+ freebsd => [ qw( posix bsd), $OS_FREEBSD{cc} , { %OS_FREEBSD } ],