Added
Link Here
|
0 |
- |
1 |
--- src/discover/discover.ml.orig 2024-05-05 14:51:09 UTC |
|
|
2 |
+++ src/discover/discover.ml |
3 |
@@ -4,7 +4,13 @@ int main(int argc, char ** argv) |
4 |
{| |
5 |
int main(int argc, char ** argv) |
6 |
{ |
7 |
+/* FREEBSD: clang started ignoring target-specific feature flags in |
8 |
+ * some compile+link invocations */ |
9 |
+#if !defined(__x86_64__) && !defined(__i386__) |
10 |
+#error "-mpopcnt is not for this arch" |
11 |
+#else |
12 |
return __builtin_popcount(argc); |
13 |
+#endif |
14 |
} |
15 |
|} |
16 |
;; |