Enforces intel icpc >= 2017, fixes #1121 (#1363)

This commit is contained in:
Lori A. Burns 2018-04-29 07:48:25 -04:00 committed by Wenzel Jakob
parent 97a62ebef2
commit 2972cb3808
4 changed files with 11 additions and 4 deletions

View File

@ -99,7 +99,7 @@ In addition to the core functionality, pybind11 provides some extra goodies:
1. Clang/LLVM 3.3 or newer (for Apple Xcode's clang, this is 5.0.0 or newer) 1. Clang/LLVM 3.3 or newer (for Apple Xcode's clang, this is 5.0.0 or newer)
2. GCC 4.8 or newer 2. GCC 4.8 or newer
3. Microsoft Visual Studio 2015 Update 3 or newer 3. Microsoft Visual Studio 2015 Update 3 or newer
4. Intel C++ compiler 16 or newer (15 with a [workaround](https://github.com/pybind/pybind11/issues/276)) 4. Intel C++ compiler 17 or newer (16 with pybind11 v2.0 and 15 with pybind11 v2.0 and a [workaround](https://github.com/pybind/pybind11/issues/276))
5. Cygwin/GCC (tested on 2.5.1) 5. Cygwin/GCC (tested on 2.5.1)
## About ## About

View File

@ -6,6 +6,13 @@ Changelog
Starting with version 1.8.0, pybind11 releases use a `semantic versioning Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy. <http://semver.org>`_ policy.
v2.2.3 (April 29, 2018)
-----------------------------------------------------
* The minimal supported version of the Intel compiler was >= 17.0 since
pybind11 v2.1. This check is now explicit, and a compile-time error is raised
if the compiler does not meet the requirements.
v2.2.2 (February 7, 2018) v2.2.2 (February 7, 2018)
----------------------------------------------------- -----------------------------------------------------

View File

@ -92,4 +92,4 @@ Supported compilers
1. Clang/LLVM (any non-ancient version with C++11 support) 1. Clang/LLVM (any non-ancient version with C++11 support)
2. GCC 4.8 or newer 2. GCC 4.8 or newer
3. Microsoft Visual Studio 2015 or newer 3. Microsoft Visual Studio 2015 or newer
4. Intel C++ compiler v15 or newer 4. Intel C++ compiler v17 or newer (v16 with pybind11 v2.0 and v15 with pybind11 v2.0 and a `workaround <https://github.com/pybind/pybind11/issues/276>`_ )

View File

@ -46,8 +46,8 @@
// Compiler version assertions // Compiler version assertions
#if defined(__INTEL_COMPILER) #if defined(__INTEL_COMPILER)
# if __INTEL_COMPILER < 1500 # if __INTEL_COMPILER < 1700
# error pybind11 requires Intel C++ compiler v15 or newer # error pybind11 requires Intel C++ compiler v17 or newer
# endif # endif
#elif defined(__clang__) && !defined(__apple_build_version__) #elif defined(__clang__) && !defined(__apple_build_version__)
# if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 3) # if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 3)