|
6 | 6 | # Error on undefined variable |
7 | 7 | set -u |
8 | 8 |
|
9 | | -apt-get update |
10 | | -DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ |
11 | | - g++ \ |
12 | | - g++-10 \ |
13 | | - gcc \ |
14 | | - gcc-10 |
15 | | - |
16 | | -# Add alternatives for cpp-10, gcc-10, and g++-10 |
17 | | -# NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives |
18 | | -# on the user's system. |
19 | | -update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ |
20 | | - --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz |
21 | | -update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ |
22 | | - --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz |
23 | | -update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 |
24 | | - |
25 | | -update-alternatives --config cc |
26 | | - |
27 | | -update-alternatives --set cc /usr/bin/gcc-10 |
28 | | -update-alternatives --set c++ /usr/bin/g++-10 |
29 | | -update-alternatives --set cpp /usr/bin/cpp-10 |
30 | | - |
31 | | -update-alternatives --config cc |
| 9 | +#apt-get update |
| 10 | +#DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ |
| 11 | +# g++ \ |
| 12 | +# g++-10 \ |
| 13 | +# gcc \ |
| 14 | +# gcc-10 |
| 15 | +# |
| 16 | +## Add alternatives for cpp-10, gcc-10, and g++-10 |
| 17 | +## NOTE: We use a low priority to avoid affecting the prioritization of any existing alternatives |
| 18 | +## on the user's system. |
| 19 | +#update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-10 0 \ |
| 20 | +# --slave /usr/share/man/man1/cc.1.gz cc.1.gz /usr/share/man/man1/gcc.1.gz |
| 21 | +#update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 0 \ |
| 22 | +# --slave /usr/share/man/man1/c++.1.gz c++.1.gz /usr/share/man/man1/g++.1.gz |
| 23 | +#update-alternatives --install /lib/cpp cpp /usr/bin/cpp-10 0 |
| 24 | +# |
| 25 | +#update-alternatives --config cc |
| 26 | +# |
| 27 | +#update-alternatives --set cc /usr/bin/gcc-10 |
| 28 | +#update-alternatives --set c++ /usr/bin/g++-10 |
| 29 | +#update-alternatives --set cpp /usr/bin/cpp-10 |
| 30 | +# |
| 31 | +#update-alternatives --config cc |
0 commit comments