File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ jobs:
227
227
-DCMAKE_INSTALL_PREFIX=$PREFIX \
228
228
-DXEUS_CPP_EMSCRIPTEN_WASM_BUILD=ON \
229
229
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON \
230
+ -DCMAKE_COMPILE_WARNING_AS_ERROR=false \
230
231
..
231
232
EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j ${{ env.ncpus }}
232
233
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ OPTION(XEUS_CPP_BUILD_EXECUTABLE "Build the xcpp executable" ON)
47
47
OPTION (XEUS_CPP_USE_SHARED_XEUS "Link xcpp with the xeus shared library (instead of the static library)" ON )
48
48
OPTION (XEUS_CPP_USE_SHARED_XEUS_CPP "Link xcpp with the xeus shared library (instead of the static library)" ON )
49
49
50
+ option (CMAKE_COMPILE_WARNING_AS_ERROR "Compile warnings as errors" ON )
51
+
50
52
# Test options
51
53
OPTION (XEUS_CPP_BUILD_TESTS "xeus-cpp test suite" ON )
52
54
OPTION (XEUS_CPP_ENABLE_CODE_COVERAGE "xeus-cpp test suite" OFF )
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ int __get_cxx_version () {
101
101
__get_cxx_version ()
102
102
)" ;
103
103
104
- long cxx_version = Cpp::Evaluate (code);
105
- return std::to_string (cxx_version);
104
+ auto cxx_version = Cpp::Evaluate (code);
105
+ return std::to_string (cxx_version);
106
106
}
107
107
108
108
@@ -138,6 +138,9 @@ __get_cxx_version ()
138
138
{
139
139
nl::json kernel_res;
140
140
141
+
142
+ auto input_guard = input_redirection (allow_stdin);
143
+
141
144
// Check for magics
142
145
for (auto & pre : preamble_manager.preamble )
143
146
{
You can’t perform that action at this time.
0 commit comments