Add lcc to the list of unwanted compilers that mimic gcc

This commit is contained in:
Pavel Kamenov 2021-03-30 09:25:38 +03:00 committed by Martin Hořeňovský
parent ea44e73961
commit cbcab2dbcd
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -38,9 +38,9 @@
#endif
// We have to avoid both ICC and Clang, because they try to mask themselves
// as gcc, and we want only GCC in this block
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && !defined(__CUDACC__)
// Only GCC compiler should be used in this block, so other compilers trying to
// mask themselves as GCC should be ignored.
#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && !defined(__CUDACC__) && !defined(__LCC__)
# define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic push" )
# define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic pop" )