Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme: tell macOS users to use brew clang with LTO #4679

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
README: tell macOS users to use brew clang with LTO
  • Loading branch information
widlarizer committed Oct 22, 2024
commit f3213d5057e037f7e20e4ec04ba8e5bb2b944db8
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -130,9 +130,15 @@ lld by enabling LTO:

$ make ENABLE_LTO=1

On macOS, LTO requires using clang from homebrew which isn't in PATH
rather than xcode clang.

$ make ENABLE_LTO=1 CXX=$(brew --prefix)/opt/llvm/bin/clang++

For other compilers and build configurations it might be
necessary to make some changes to the config section of the
Makefile.
Makefile. It's also an alternative way to set the make variables
mentioned above.

$ vi Makefile # ..or..
$ vi Makefile.conf