Skip to content

Commit

Permalink
README: tell macOS users to use brew clang with LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Oct 22, 2024
1 parent 7db4c65 commit f3213d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3213d5

Please sign in to comment.