Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I am trying to build a project that uses lld and I get the following error:
invalid linker name in argument '-fuse-ld=lld'
I have already installed llvm with "brew install llvm" it is still not working.
brew install llvm
should work, but you need to use brew info llvm
to check the default install path first (it usually is /usr/local/opt/llvm
).
So, if you need to have llvm
first in your PATH
, run:
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc
Then all the build works.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.