summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel/qvfssql
diff options
context:
space:
mode:
authorƁukasz Matysiak <lukasz.matysiak@qt.io>2024-06-06 15:06:56 +0200
committerIvan Solovev <ivan.solovev@qt.io>2024-06-13 08:59:40 +0000
commitf9971e6e2923dc96abe09f9dfb1ef9c8bcf23481 (patch)
treeab92f1cdb23ead11093798e982e566d54dc1f39f /tests/auto/sql/kernel/qvfssql
parentbb542a55b28dd591709ed2c68e4505ec08fc62b5 (diff)
Prevent using -std=c++20 on vxworks in tst_qfloat16formatHEADdev
VxWorks 24.03 uses clang 17 that understands the -std=c++20 switch. However the C++ standard library that is provided by VxWorks does not support C++20. Using `CXX_STANDARD 20` leads to -std=c++20 being passed to clang. Clang in turn enables the preprocessor symbols that are used to check if C++20 specific features are available (eg __cpp_concepts). Some files (like qanystringview.h) use such symbols to check if C++20 headers are available. Since clang enables the symbols, it tries to compile the headers and hits a compilation error, since the header itself is not available. Fix the problem by only enabling C++20 when not on VxWorks. This is a quick fix to enable building tests on CI so it can in turn block future deliveries that would break VxWorks builds (as right now only the src dir is built). Task-number: QTBUG-115777 Change-Id: Idb742927755a2d28c149a28cc0b1290c8ceed7ee Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qvfssql')
0 files changed, 0 insertions, 0 deletions