jimeh / build-emacs-for-macos

Somewhat hacky script to automate building of Emac.app on macOS.
484 stars 50 forks source link

feat(native_comp)!: use new libgccjit Homebrew formula #17

Closed jimeh closed 4 years ago

jimeh commented 4 years ago

The new libgccjit Homebrew formula negates the need to install a custom patched gcc formula from source to get libgccjit.

As it's a separate formula, the file structure is a bit different though, requiring some changes to the script. This means it is no longer compatible libgccjit from the custom gcc formula. If you already have the custom patched gcc formula installed, you can replace it with the standard gcc formula by running:

brew reinstall gcc

In theory though, it should work even with the patched gcc formula, as long as libgccjit is installed too. But it will probably produce a Emacs.app that's around 35MB larger than it needs to, thanks to duplicating the libgccjit.so.0.0.1 file within the final application.

BREAKING CHANGE: Standard Homewbrew gcc and libgccjit formula are now required for native-comp, instead of the custom patched gcc formula.