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:
227227            -DCMAKE_INSTALL_PREFIX=$PREFIX                    \ 
228228            -DXEUS_CPP_EMSCRIPTEN_WASM_BUILD=ON               \ 
229229            -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ON            \ 
230+             -DCMAKE_COMPILE_WARNING_AS_ERROR=false            \ 
230231            .. 
231232          EMCC_CFLAGS='-sERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j  ${{ env.ncpus }} 
232233
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ OPTION(XEUS_CPP_BUILD_EXECUTABLE "Build the xcpp executable" ON)
4747OPTION (XEUS_CPP_USE_SHARED_XEUS "Link xcpp  with the xeus shared library (instead of the static library)"  ON )
4848OPTION (XEUS_CPP_USE_SHARED_XEUS_CPP "Link xcpp  with the xeus shared library (instead of the static library)"  ON )
4949
50+ option (CMAKE_COMPILE_WARNING_AS_ERROR "Compile warnings as errors"  ON )
51+ 
5052# Test options 
5153OPTION (XEUS_CPP_BUILD_TESTS "xeus-cpp test suite"  ON )
5254OPTION (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 () {
101101__get_cxx_version () 
102102      )"  ;
103103
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);
106106    }
107107
108108
@@ -138,6 +138,9 @@ __get_cxx_version ()
138138    {
139139        nl::json kernel_res;
140140
141+ 
142+         auto  input_guard = input_redirection (allow_stdin);
143+ 
141144        //  Check for magics
142145        for  (auto & pre  : preamble_manager.preamble )
143146        {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments