-
-
Save KetothXupack/69cb7e41cc61965dda9bc3b3915644cf to your computer and use it in GitHub Desktop.
default to ld.gold on Ubuntu'ish
This file contains 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