diff options
author | Linus Groh <mail@linusgroh.de> | 2020-11-07 17:16:53 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-07 18:22:18 +0100 |
commit | 2c9e6585f8cc3c8a739feecab6913f3b71f56b49 (patch) | |
tree | faa36198cc8ddf5adec1229461be5fe307cbaadd /Documentation/BuildInstructions.md | |
parent | 02d625294910fcdc4ff3ba834998c004ec16ac3a (diff) | |
download | serenity-2c9e6585f8cc3c8a739feecab6913f3b71f56b49.zip |
Documentation: Update required GCC version to >= 10
I initially thought as long as Lagom is not built >= 9 would be fine,
but LagomCore is always built for the code generators.
Diffstat (limited to 'Documentation/BuildInstructions.md')
-rw-r--r-- | Documentation/BuildInstructions.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/BuildInstructions.md b/Documentation/BuildInstructions.md index 5f03cf82bf..1067027e0a 100644 --- a/Documentation/BuildInstructions.md +++ b/Documentation/BuildInstructions.md @@ -30,23 +30,23 @@ sudo pacman -S --needed base-devel cmake curl mpfr libmpc gmp e2fsprogs qemu qem apt-get install curl cmake libmpc-devel gmp-devel e2fsprogs libmpfr-devel patch gcc ``` -Ensure your gcc version is >= 9 with `gcc --version`. Otherwise, install it (on Ubuntu) with: +Ensure your gcc version is >= 10 with `gcc --version`. Otherwise, install it. + +On Ubuntu it's in the repositories of 20.04 (Focal) - add the `ubuntu-toolchain-r/test` PPA if you're running an older version: ```bash sudo add-apt-repository ppa:ubuntu-toolchain-r/test -sudo apt-get install gcc-9 g++-9 -sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 --slave /usr/bin/g++ g++ /usr/bin/g++-9 ``` -On Debian you can install it by switching to the Debian testing branch: +On Debian you can use the Debian testing branch: ```bash sudo echo "deb http://http.us.debian.org/debian/ testing non-free contrib main" >> /etc/apt/sources.list sudo apt update ``` -Afterwards you can install gcc-9 with apt like: +Now on Ubuntu or Debian you can install gcc-10 with apt like this: ```bash -sudo apt install gcc-9 g++-9 -sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 900 --slave /usr/bin/g++ g++ /usr/bin/g++-9 +sudo apt install gcc-10 g++-10 +sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 900 --slave /usr/bin/g++ g++ /usr/bin/g++-10 ``` If you don't want to stay on the testing branch you can switch back by running: |