Via Nicholas Nethercote:
On macOS, XProtect (part of Gatekeeper) scans every newly created executable for malware. These scans can slow Rust builds down a lot.
[mac]OS scans every executable for malware on the first run. This makes sense for executables downloaded from the internet. It’s arguably less sensible for executables you compiled yourself.
According to the nexte.st docs, you can disable these scans for your terminal apps:
- You can stop XProtect scans on your terminal (and other terminal emulators - Ghostty etc) by running
sudo spctl developer-mode enable-terminal
.
…80 more words