Skip to content
Snippets Groups Projects
Commit cf84827a authored by Simon McVittie's avatar Simon McVittie
Browse files

README: Mention availability of gcc-14-monolithic

parent d6c48e45
No related branches found
No related tags found
No related merge requests found
......@@ -134,12 +134,19 @@ Several sets of compilers are available:
* gcc-9 and g++-9
* gcc-10 and g++-10 (default)
* gcc-12 and g++-12 (experimental)
* gcc-14 and g++-14 (experimental)
* clang-11 and clang++-11
The experimental `gcc-12` and `g++-12` can be installed by using
`apt-get install gcc-12-monolithic` but are not currently included in
the SDK itself.
Similarly,
the experimental `gcc-14` and `g++-14` can be installed by using
`apt-get install gcc-14-monolithic`.
At the time of writing,
this requires adding the [beta apt source](#apt-packages).
To avoid an unexpected upgrade of the Standard C++ library,
`gcc-12`, `g++-12` and any newer versions always behave as though the
`-static-libgcc` and `static-libstdc++` options had been used.
......@@ -149,7 +156,7 @@ C-based external dependencies such as SDL and GLib are safe to use, but
passing a STL object such as `std::string` to C++-based libraries from
the Steam Runtime or the operating system (for example `libgnutlsxx` or
`libpcrecpp`) will not necessarily work and is best avoided, especially
if you are using `g++-9` or newer.
if you are using `g++-12` or newer.
Most build systems have a way to use a non-default compiler by specifying
its name, for example Autotools `./configure CC=clang CXX=clang++ ...` and
......@@ -169,6 +176,9 @@ The sniper SDK can compile 32-bit code in two different ways:
Both should result in binaries that link to the same libraries.
For gcc versions newer than the default, only the multilib style (`-m32`)
is available.
Meson users can use a command like `meson --cross-file=gcc-m32.txt ...`
to select the `-m32` multilib toolchain.
See `/usr/share/meson/cross` in the container for all the options available.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment