mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-08 15:13:24 +00:00
Merge pull request #4679 from YosysHQ/emil/readme-mac-lto
readme: tell macOS users to use brew clang with LTO
This commit is contained in:
commit
f20f913223
1 changed files with 7 additions and 1 deletions
|
@ -130,9 +130,15 @@ lld by enabling LTO:
|
||||||
|
|
||||||
$ make ENABLE_LTO=1
|
$ 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
|
For other compilers and build configurations it might be
|
||||||
necessary to make some changes to the config section of the
|
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 # ..or..
|
||||||
$ vi Makefile.conf
|
$ vi Makefile.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue