On Monday 25 of April 2022 09:45:22 Christoph Klassen wrote:
On 4/24/22 08:27, Slávek Banko wrote:
Hi Christoph,
as Michele mentioned, we use the default distribution compiler. For supported versions of Debian distribution, it includes GCC from version 6.3 to version 11.x. To build on FreeBSD, Clang is used there.
Thanks to both of you, Michele and Slávek!
And which C(++)-standard is used? As far as I know you can set the standard with CPPFLAGS/CXXFLAGS when you add a parameter. In the file acinclude.m4.in I found the line "CXXFLAGS="-ansi [...]" and I read that sometimes the standard C89 is also called ANSI C, but I couldn't find out what the parameter -ansi stands for in the CXXFLAGS.
Can you help me to bring light into the darkness? I would also be grateful, if you had articles or the like, so I could read about it.
Kind regards, Christoph
Hi Christoph,
for TDE releases <= r14.0.11 there apply, that for CMake builds is used the default C++ standard of distribution compiler, while for Automake builds was enforced "-ansi", which actually enforces C++98. This enforcement of the old standard for Automake builds was canceled. For the upcoming R14.0.12 we set as a minimum required standard C++11.
Because tdepim is built using CMake, there is no need to deal with files related to Automake build process - ie acinclude.m4.in, configure.in*, Makefile.in.
See related commits in common "admin" and "cmake" modules:
https://mirror.git.trinitydesktop.org/cgit/admin/commit/?h=r14.0.x&id=ba... https://mirror.git.trinitydesktop.org/cgit/admin/commit/?h=r14.0.x&id=a9...
https://mirror.git.trinitydesktop.org/cgit/cmake/commit/?h=r14.0.x&id=19...
Cheers