Fix failing builds and update CI on push.

Specifically:
- Fixed ctz on 32-bit arm (where `uint64_t` is `unsigned long long`)
- Fixed build of random_cpp11 snippet when C++11 is disabled
- Updated CI scripts to run windows on push, and added a no-c++11 test
This commit is contained in:
C. Antonio Sanchez
2025-02-16 22:13:29 -08:00
parent ab92609cad
commit 57c8d7c93f
7 changed files with 26 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ endif()
if(EIGEN_COMPILER_SUPPORT_CPP11)
add_executable(random_cpp11 random_cpp11.cpp)
target_link_libraries(random_cpp11 ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
target_link_libraries(random_cpp11 ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO} Eigen3::Eigen)
add_dependencies(all_examples random_cpp11)
target_compile_options(random_cpp11 PRIVATE "-std=c++11")