diff options
Diffstat (limited to 'devel/ocaml-base/files/patch-src_discover_discover.ml')
-rw-r--r-- | devel/ocaml-base/files/patch-src_discover_discover.ml | 14 |
1 files changed, 14 insertions, 0 deletions
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..f2339c100a1d --- /dev/null +++ b/devel/ocaml-base/files/patch-src_discover_discover.ml @@ -0,0 +1,14 @@ +--- src/discover/discover.ml.orig 2024-04-29 15:54:18 UTC ++++ src/discover/discover.ml +@@ -4,7 +4,11 @@ int main(int argc, char ** argv) + {| + int main(int argc, char ** argv) + { ++#if defined(__clang__) && !defined(__x86_64__) && !defined(__i386__) ++#error "-mpopcnt is not for this arch" ++#else + return __builtin_popcount(argc); ++#endif + } + |} + ;; |