Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPavel Kamenov2021-03-30 09:25:38 +0300
committerMartin Hořeňovský2021-05-09 18:12:58 +0200
commitcbcab2dbcdf1e4418b48cc73b01dd440b5a19d17 (patch)
treef576540ac8e648214d5b611864b9ed5a2ff29acb /src
parentea44e73961c234149abda2362d4e94664c1f35ae (diff)
downloadcatch3-cbcab2dbcdf1e4418b48cc73b01dd440b5a19d17.tar.gz
Add lcc to the list of unwanted compilers that mimic gcc
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_compiler_capabilities.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp
index 3c24cf2b..a4369e87 100644
--- a/src/catch2/internal/catch_compiler_capabilities.hpp
+++ b/src/catch2/internal/catch_compiler_capabilities.hpp
@@ -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" )