Skip to content

Commit 0bdf8b9

Browse files
committed
Debugging non-failure of /std:c++17
1 parent 9a7dfef commit 0bdf8b9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.appveyor.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ platform:
1212
environment:
1313
matrix:
1414
- PYTHON: 36
15-
CPP: 14
15+
CPP: 17
1616
CONFIG: Debug
1717
- PYTHON: 27
18-
CPP: 14
18+
CPP: 17
1919
CONFIG: Debug
2020
- CONDA: 36
2121
CPP: 17
@@ -57,14 +57,15 @@ install:
5757
7z x 3.3.3.zip -y > $null
5858
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH"
5959
build_script:
60+
- set VERBOSE=1
6061
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
6162
-DPYBIND11_CPP_STANDARD="/std:c++%CPP%"
6263
-DPYBIND11_WERROR=ON
6364
-DDOWNLOAD_CATCH=ON
6465
-DCMAKE_SUPPRESS_REGENERATION=1
6566
.
6667
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
67-
- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
68-
- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
69-
- if "%CPP%"=="17" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
68+
- cmake --build . --config %CONFIG% --target pytest -- /m /logger:%MSBuildLogger%
69+
- cmake --build . --config %CONFIG% --target cpptest -- /m /logger:%MSBuildLogger%
70+
- if "%CPP%"=="17" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /logger:%MSBuildLogger%)
7071
on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*

tools/pybind11Tools.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ if(NOT PYBIND11_CPP_STANDARD AND NOT CMAKE_CXX_STANDARD)
5656
"C++ standard flag, e.g. -std=c++11, -std=c++14, /std:c++14. Defaults to C++14 mode." FORCE)
5757
endif()
5858

59+
message(PYBIND11_CPP_STANDARD = ${PYBIND11_CPP_STANDARD})
60+
5961
# Checks whether the given CXX/linker flags can compile and link a cxx file. cxxflags and
6062
# linkerflags are lists of flags to use. The result variable is a unique variable name for each set
6163
# of flags: the compilation result will be cached base on the result variable. If the flags work,

0 commit comments

Comments
 (0)