mirror of
https://github.com/Z3Prover/z3
synced 2026-06-25 10:00:33 +00:00
The "Python bindings (Pyodide)" CI job fails at CMake configure time because Emscripten's cross-compiler cannot pass the `std::atomic` link tests in `check_link_atomic.cmake`, resulting in a fatal error even though Pyodide builds are single-threaded and never need `libatomic`. ## Change - **`cmake/check_link_atomic.cmake`**: guard the entire atomic check behind `if (NOT (EMSCRIPTEN OR Z3_SINGLE_THREADED))`. Emscripten sets `EMSCRIPTEN` automatically via `emcmake`; Pyodide builds also pass `-DZ3_SINGLE_THREADED=TRUE`, so either condition is sufficient to bypass the check safely. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| modules | ||
| check_link_atomic.cmake | ||
| cmake_uninstall.cmake.in | ||
| compiler_lto.cmake | ||
| compiler_warnings.cmake | ||
| cxx_compiler_flags_overrides.cmake | ||
| git_utils.cmake | ||
| msvc_legacy_quirks.cmake | ||
| target_arch_detect.cmake | ||
| target_arch_detect.cpp | ||
| z3_add_component.cmake | ||
| z3_add_cxx_flag.cmake | ||
| z3_append_linker_flag_list_to_target.cmake | ||
| Z3Config.cmake.in | ||