You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix -mpopcnt compilation failure on macOS/aarch64 10.4
The problem arises from this bug in clang
llvm/llvm-project#116278
which causes the following:
```
$ cc t.c -mpopcnt
clang: error: unsupported option '-mpopcnt' for target 'arm64-apple-darwin24.4.0'
$ cc t.c -mpopcnt -lpthread
```
The src/discover uses dune configurator, which always appends
the C link flags from ocamlopt to the command line, and so the
configurator erronously thinks that -mpopcnt will work.
Since the dune configurator can't easily be overridden, this
PR works around this specific link order issue by hand-calling
the cc compiler from the discover binary.
fixes#164 and #168
0 commit comments