I want to use the lld linker in my project.
I saw this Question but the solution didn't use apt-get.
I tried:
sudo apt-get install llvm
sudo apt-get install clang
sudo apt-get install clang-tools
Nothing worked.
I added to the Cmake -fuse-ld=lld:
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -fuse-ld=lld")
I have a compilation error:
collect2: fatal error: cannot find 'ld'
Can't find lld:
lld --version
command not found: lld
Edit-1
I am using Ubuntu Ubuntu 18.04.6 LTS on arm architecture
Edit-2
It's not essential to the problem because Ubuntu 18.04 LTS has reached the end of its standard support life but for the sake of good order I will give full details:
arm64 architecture, universe repository is enabled