-
-
Save qrealka/34b5e1aeb92d1bb0c54c5d54fad8a993 to your computer and use it in GitHub Desktop.
Revisions
-
ArseniyShestakov revised this gist
Sep 27, 2016 . 4 changed files with 42 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,27 +1,38 @@ # Cleanup old alternatives update-alternatives --remove-all cc update-alternatives --remove-all c++ update-alternatives --remove-all gcc update-alternatives --remove-all g++ update-alternatives --remove-all clang update-alternatives --remove-all clang++ update-alternatives --remove-all icc update-alternatives --remove-all icc++ # Add GCC versions update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 30 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 30 # Add Clang versions update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.7 10 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.7 10 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 20 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang-3.8 20 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 30 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-4.0 30 # Add ICC versions update-alternatives --install /usr/bin/icc icc /opt/intel/compilers_and_libraries/linux/bin/intel64/icc 10 update-alternatives --install /usr/bin/icc++ icc++ /opt/intel/compilers_and_libraries/linux/bin/intel64/icpc 10 # Add compilers update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 update-alternatives --install /usr/bin/cc cc /usr/bin/clang 40 update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 40 update-alternatives --install /usr/bin/cc cc /usr/bin/icc 50 update-alternatives --install /usr/bin/c++ c++ /usr/bin/icc++ 50 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 charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,7 @@ update-alternatives --set cc /usr/bin/gcc update-alternatives --set c++ /usr/bin/g++ update-alternatives --set cc /usr/bin/clang update-alternatives --set c++ /usr/bin/clang++ update-alternatives --set cc /usr/bin/icc update-alternatives --set c++ /usr/bin/icc++ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ # Remove existing update-alternatives --remove-all ld update-alternatives --remove-all ld.intel # Add Icc linker update-alternatives --install /usr/bin/ld.intel ld.intel /opt/intel/compilers_and_libraries/linux/bin/intel64/xild 10 # Add all linkers update-alternatives --install /usr/bin/ld ld /usr/bin/ld.bfd 10 update-alternatives --install /usr/bin/ld ld /usr/bin/ld.gold 20 update-alternatives --install /usr/bin/ld ld /usr/bin/ld.intel 30 # Choose one update-alternatives --set ld /usr/bin/ld.bfd update-alternatives --set ld /usr/bin/ld.gold update-alternatives --set ld /usr/bin/ld.intel 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 charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,6 @@ update-alternatives --set g++ /usr/bin/g++-6 # Clang update-alternatives --set clang /usr/bin/clang-4.0 update-alternatives --set clang++ /usr/bin/clang++-4.0 # Icc -
ArseniyShestakov revised this gist
Sep 21, 2016 . 2 changed files with 5 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,10 @@ update-alternatives --remove-all c++ # Add GCC versions update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 30 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 30 # Add Clang versions update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.7 10 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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,9 @@ update-alternatives --set g++ /usr/bin/g++-4.9 update-alternatives --set gcc /usr/bin/gcc-5 update-alternatives --set g++ /usr/bin/g++-5 update-alternatives --set gcc /usr/bin/gcc-6 update-alternatives --set g++ /usr/bin/g++-6 # Clang update-alternatives --set clang /usr/bin/clang-4.0 update-alternatives --set clang++ /usr/bin/clang++-4.0 -
ArseniyShestakov revised this gist
Sep 21, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ update-alternatives --remove-all c++ # Add GCC versions update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 # Add Clang versions -
ArseniyShestakov created this gist
Sep 21, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ # Cleanup old alternatives update-alternatives --remove-all gcc update-alternatives --remove-all g++ update-alternatives --remove-all cc update-alternatives --remove-all c++ # Add GCC versions update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++4.9 10 update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 # Add Clang versions update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.7 10 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 20 update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 30 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.7 10 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 20 update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-4.0 30 # Add compilers update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 update-alternatives --install /usr/bin/cc cc /usr/bin/clang 40 update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 40 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ update-alternatives --set cc /usr/bin/gcc update-alternatives --set c++ /usr/bin/g++ update-alternatives --set cc /usr/bin/clang update-alternatives --set c++ /usr/bin/clang++ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # GCC update-alternatives --set gcc /usr/bin/gcc-4.9 update-alternatives --set g++ /usr/bin/g++-4.9 update-alternatives --set gcc /usr/bin/gcc-5 update-alternatives --set g++ /usr/bin/g++-5 # Clang update-alternatives --set clang /usr/bin/clang-4.0 update-alternatives --set clang++ /usr/bin/clang++-4.0