FreeBSD Bugzilla – Attachment 250466 Details for
Bug 278791
devel/ocaml-base: unbreak on non-x86
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-devel-ocaml-base-unbreak-on-non-x86.patch (text/plain), 1.10 KB, created by
Benjamin Jacobs
on 2024-05-05 17:52:40 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Benjamin Jacobs
Created:
2024-05-05 17:52:40 UTC
Size:
1.10 KB
patch
obsolete
>From bea86329ead355b016d7e9417bddeeaa31e9e8cf Mon Sep 17 00:00:00 2001 >From: Benjamin Jacobs <freebsd@dev.thsi.be> >Date: Sun, 5 May 2024 16:08:18 +0000 >Subject: [PATCH] devel/ocaml-base: unbreak on non-x86 > >--- > .../files/patch-src_discover_discover.ml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > create mode 100644 devel/ocaml-base/files/patch-src_discover_discover.ml > >diff --git a/devel/ocaml-base/files/patch-src_discover_discover.ml b/devel/ocaml-base/files/patch-src_discover_discover.ml >new file mode 100644 >index 000000000000..a07a2a7d6ed9 >--- /dev/null >+++ b/devel/ocaml-base/files/patch-src_discover_discover.ml >@@ -0,0 +1,16 @@ >+--- src/discover/discover.ml.orig 2024-05-05 14:51:09 UTC >++++ src/discover/discover.ml >+@@ -4,7 +4,13 @@ int main(int argc, char ** argv) >+ {| >+ int main(int argc, char ** argv) >+ { >++/* FREEBSD: clang started ignoring target-specific feature flags in >++ * some compile+link invocations */ >++#if !defined(__x86_64__) && !defined(__i386__) >++#error "-mpopcnt is not for this arch" >++#else >+ return __builtin_popcount(argc); >++#endif >+ } >+ |} >+ ;; >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278791
:
250466
|
250816