Features: Record features for Intel Compiler on Windows
Since this compiler always defines `__cplusplus` to `1` we need to use `_MSC_VER`, `__INTEL_CXX11_MODE__`, and the feature test macro named `__cpp_aggregate_nsdmi` to detect C++11 and C++14 modes. With no `-Qstd=` flag this compiler defaults to C++98 plus a subset of C++11/C++14 features needed to be compatible with MSVC. We pretend it is plain C++98 and add a `-Qstd=` flag whenever needed for C++11 or above features even if they would happen to be available in MSVC-mode. Closes: #16384
Showing
- Help/manual/cmake-compile-features.7.rst 1 addition, 1 deletionHelp/manual/cmake-compile-features.7.rst
- Help/release/dev/intel-compile-features-windows.rst 6 additions, 0 deletionsHelp/release/dev/intel-compile-features-windows.rst
- Modules/Compiler/Intel-C-FeatureTests.cmake 3 additions, 6 deletionsModules/Compiler/Intel-C-FeatureTests.cmake
- Modules/Compiler/Intel-C.cmake 1 addition, 2 deletionsModules/Compiler/Intel-C.cmake
- Modules/Compiler/Intel-CXX-FeatureTests.cmake 2 additions, 8 deletionsModules/Compiler/Intel-CXX-FeatureTests.cmake
- Modules/Compiler/Intel-CXX.cmake 1 addition, 2 deletionsModules/Compiler/Intel-CXX.cmake
Please register or sign in to comment