mirror of
https://github.com/Z3Prover/z3
synced 2026-02-09 10:35:36 +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:
parent
af76ac69d6
commit
34d2d08364
2 changed files with 6 additions and 3 deletions
7
.github/workflows/README-macos-headerpad.md
vendored
7
.github/workflows/README-macos-headerpad.md
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -152,7 +152,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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue