Kobzol / cargo-pgo

Cargo subcommand for optimizing Rust binaries/libraries with PGO and BOLT.
MIT License
573 stars 11 forks source link

Update bolt link flags to `-keep_relocs` on MacOS #40

Closed bhansconnect closed 1 year ago

bhansconnect commented 1 year ago

MacOS does not have -q or --emit-relocs instead it has -keep_relocs

Kobzol commented 1 year ago

Hi :) I was under the impression that BOLT doesn't work on macOS, were you able to get it running there?

bhansconnect commented 1 year ago

Ah sorry, forgot to loop back to this, that got it compiling, but bolt then crashes dealing with macos relocations that it thinks don't make sense.