Skip to content

Commit 802e6ed

Browse files
committed
minor
1 parent bc6177a commit 802e6ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install-gcc-14.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -eu
44

5+
MAJOR_VER='14'
56
VER='14.2.0'
67
GCC_VER="gcc-${VER}"
78
apt -y install build-essential libmpfr-dev libgmp3-dev libmpc-dev
@@ -28,5 +29,5 @@ make install
2829

2930
set -x
3031

31-
update-alternatives --install /usr/bin/g++-${VER} g++ ${PREFIX}/${GCC_VER}/bin/g++-${VER} 14
32-
update-alternatives --install /usr/bin/gcc-${VER} gcc ${PREFIX}/${GCC_VER}/bin/gcc-${VER} 14
32+
update-alternatives --install /usr/bin/g++-${MAJOR_VER} g++ ${PREFIX}/${GCC_VER}/bin/g++-${VER} 14
33+
update-alternatives --install /usr/bin/gcc-${MAJOR_VER} gcc ${PREFIX}/${GCC_VER}/bin/gcc-${VER} 14

0 commit comments

Comments
 (0)