diff options
Diffstat (limited to 'Modules/CMakeHIPCompilerId.hip.in')
-rw-r--r-- | Modules/CMakeHIPCompilerId.hip.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CMakeHIPCompilerId.hip.in b/Modules/CMakeHIPCompilerId.hip.in index 72574d4..3c4a1d4 100644 --- a/Modules/CMakeHIPCompilerId.hip.in +++ b/Modules/CMakeHIPCompilerId.hip.in @@ -32,6 +32,14 @@ const char* info_language_standard_default = "INFO" ":" "standard_default[" #endif "]"; +const char* info_language_extensions_default = "INFO" ":" "extensions_default[" +#if (defined(__clang__) || defined(__GNUC__)) && !defined(__STRICT_ANSI__) + "ON" +#else + "OFF" +#endif +"]"; + /*--------------------------------------------------------------------------*/ int main(int argc, char* argv[]) @@ -49,6 +57,7 @@ int main(int argc, char* argv[]) require += info_simulate_version[argc]; #endif require += info_language_standard_default[argc]; + require += info_language_extensions_default[argc]; (void)argv; return require; } |