From de03b7e6d68d71d575c43eadbfb1d72cb7dfe54a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 8 Sep 2022 18:19:54 +0200 Subject: alternatives.sh: prefer gcc to clang This doesn't make much sense, but I'm currently working on a GCC-only project, and this is messing my workflow up. --- %HOME%/.bash_utils/alternatives.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '%HOME%') diff --git a/%HOME%/.bash_utils/alternatives.sh b/%HOME%/.bash_utils/alternatives.sh index 3cfb958..1d10692 100644 --- a/%HOME%/.bash_utils/alternatives.sh +++ b/%HOME%/.bash_utils/alternatives.sh @@ -19,8 +19,8 @@ setup_alternatives_cc() ( mkdir -p -- ~/.local/bin update-my-alternatives --remove-all cc || true - update-my-alternatives --install ~/.local/bin/cc cc "$clang_cc" 512 --slave ~/.local/bin/c++ c++ "$clang_cxx" - update-my-alternatives --install ~/.local/bin/cc cc "$gcc_cc" 256 --slave ~/.local/bin/c++ c++ "$gcc_cxx" + update-my-alternatives --install ~/.local/bin/cc cc "$clang_cc" 256 --slave ~/.local/bin/c++ c++ "$clang_cxx" + update-my-alternatives --install ~/.local/bin/cc cc "$gcc_cc" 512 --slave ~/.local/bin/c++ c++ "$gcc_cxx" ) setup_alternatives() ( -- cgit v1.2.3