Skip to content

Commit a5dc392

Browse files
Readme: added note about invalid code in release configurations on gcc 9, 10, and 11
1 parent 52e8375 commit a5dc392

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,12 @@ to build as it will use Visual Studio 2013 (v120) toolset that lacks proper c++1
222222
## Linux
223223

224224
Your Linux environment needs to be set up for c++ development. If it already is, make sure your c++ tools are up to date
225-
as Diligent Engine uses modern c++ features (gcc/g++ or clang 9 or later is recommended). You may need to install the following packages:
225+
as Diligent Engine uses modern c++ features (clang 10 or later is recommended). You may need to install the following packages:
226226

227-
1. gcc, make and other essential c/c++ tools:
227+
:warning: gcc 9, 10 and 11 seemingly produce invalid code in release configurations that causes crash on startup.
228+
Use gcc 7 or 8 or clang.
229+
230+
1. gcc, clang, make and other essential c/c++ tools:
228231

229232
```
230233
sudo apt-get update

Troubleshooting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ git submodule update --recursive
1818
If you are not using CMake version bundled with Android Studio, make sure your build files are
1919
[properly configured](https://developer.android.com/studio/projects/add-native-code.html#use_a_custom_cmake_version).
2020
* When using gcc, make sure the compiler version is at least 7.4.
21+
* gcc 9, 10 and 11 seemingly produce invalid code in release configurations that causes crash on startup.
22+
Use gcc 7 or 8 or clang.
2123
* Make sure you build the project with c++14 features enabled.
2224

2325
* When including Diligent headers, make sure that exactly one of `PLATFORM_WIN32`,

0 commit comments

Comments
 (0)