3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-22 08:17:37 +00:00

Fix CMake variable name and clarify test path documentation

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-08 17:24:18 +00:00 committed by Nikolaj Bjorner
parent 3ae8d7026a
commit 3c401f186b
2 changed files with 6 additions and 3 deletions

View file

@ -64,11 +64,14 @@ Each validation job:
#### Test Path Selection
The validation uses paths that match the length and structure of real-world usage by setup-z3:
The validation uses paths that match the length and structure of real-world usage by setup-z3. The actual test paths used are:
- x64: `/Users/runner/hostedtoolcache/z3/latest/x64/z3-test-dir/bin/libz3.dylib`
- ARM64: `/Users/runner/hostedtoolcache/z3/latest/arm64/z3-test-dir/bin/libz3.dylib`
These paths are representative of the GitHub Actions hosted tool cache paths that would be used in practice.
These paths are representative of the GitHub Actions hosted tool cache paths. For example, setup-z3 might use paths like:
- `/Users/runner/hostedtoolcache/z3/latest/x64/z3-4.15.5-x64-osx-15.7.3/bin/libz3.dylib`
The test paths use `z3-test-dir` instead of actual version numbers to remain version-agnostic while maintaining the same path length characteristics.
## Impact

View file

@ -156,7 +156,7 @@ endif()
target_link_libraries(libz3 PRIVATE ${Z3_DEPENDENT_LIBS})
# On macOS, add headerpad for install_name_tool compatibility
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND BUILD_LIBZ3_SHARED)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND Z3_BUILD_LIBZ3_SHARED)
target_link_options(libz3 PRIVATE "-Wl,-headerpad_max_install_names")
endif()