Last active
June 19, 2024 00:07
-
-
Save daniel-j-h/ed3bf9e5cb458b012b5a to your computer and use it in GitHub Desktop.
default to ld.gold on Ubuntu'ish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 | |
update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10 | |
update-alternatives --config ld | |
ld --version | |
GNU gold | |
export CPP=cpp-5 gcc-5 g++-5 | |
env CXXFLAGS='-march=native -flto -fuse-linker-plugin' cmake .. -DCMAKE_BUILD_TYPE=Release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment