From d7cbd676beaae371b79e2d55ef4aa8abea3e7f1d Mon Sep 17 00:00:00 2001 From: Marko Budiselic Date: Sun, 31 Dec 2023 14:20:59 +0000 Subject: [PATCH] Add compiler management script --- manage_native_compilers | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 manage_native_compilers diff --git a/manage_native_compilers b/manage_native_compilers new file mode 100755 index 0000000..c745d38 --- /dev/null +++ b/manage_native_compilers @@ -0,0 +1,16 @@ +#!/bin/bash + +# TODO(gitbuda): Incomplete cover everything at once. + +GCC_VERSION=11 + +echo "STATE BEFORE" +ls -alh /usr/bin | grep "gcc\|g++" + +ln -s -f /usr/bin/gcc-$GCC_VERSION /usr/bin/gcc +ln -s -f /usr/bin/g++-$GCC_VERSION /usr/bin/g++ +ln -s -f /usr/bin/x86_64-linux-gnu-gcc-$GCC_VERSION /usr/bin/x86_64-linux-gnu-gcc +ln -s -f /usr/bin/x86_64-linux-gnu-g++-$GCC_VERSION /usr/bin/x86_64-linux-gnu-g++ + +echo "STATE AFTER" +ls -alh /usr/bin | grep "gcc\|g++"