diff options
author | Raul Tambre <raul@tambre.ee> | 2022-01-23 21:08:44 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2022-01-23 21:10:28 (GMT) |
commit | e13dd52535bd68c33106dfc9027ce15cabf68ccf (patch) | |
tree | 03881034f0fd81cece2a4a7986885b4a15ce7b2c /Modules/CMakeCXXCompilerId.cpp.in | |
parent | a5109e676f9fedabdf09bdb1ce92e60f45ba6843 (diff) | |
download | CMake-e13dd52535bd68c33106dfc9027ce15cabf68ccf.zip CMake-e13dd52535bd68c33106dfc9027ce15cabf68ccf.tar.gz CMake-e13dd52535bd68c33106dfc9027ce15cabf68ccf.tar.bz2 |
XL: Detect default extensions mode for legacy compiler
The legacy non-Clang variant seems to support a GNU-like extensions mode, which
is the default. Enable detection for it.
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index e7a5487..4904249 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -67,7 +67,7 @@ const char* info_language_standard_default = "INFO" ":" "standard_default[" const char* info_language_extensions_default = "INFO" ":" "extensions_default[" /* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */ -#if (defined(__clang__) || defined(__GNUC__) || \ +#if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \ defined(__TI_COMPILER_VERSION__)) && \ !defined(__STRICT_ANSI__) && !defined(_MSC_VER) "ON" |