3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-03 20:24:36 +00:00
z3/scripts
Copilot b716d6350a
Fix mk_unix_dist.py cross-compilation from ARM to x64 on macOS (#8222)
* Initial plan

* Add support for ARM to X64 cross-compilation on macOS

- Initialize LINUX_X64 from mk_util.LINUX_X64
- Add support for --arch=x64 flag to force x64 builds
- Handle cross-compilation from ARM64 to x64 on macOS using -arch x86_64 flags
- Update help text to reflect both arm64 and x64 architecture options

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Fix cross-compilation detection using HOST_IS_ARM64

Use separate HOST_IS_ARM64 variable to track the host architecture,
allowing proper detection of ARM to x64 cross-compilation scenarios.
This ensures the correct compiler flags are set when building x64
on ARM hosts.

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Address code review: improve arch flag handling

- Extract target_arch_flag to variable to reduce duplication
- Add .strip() calls to handle trailing spaces in environment variables
- Ensure proper spacing in concatenated flags

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
2026-01-17 10:19:10 -08:00
..
build-win-signed-cmake.yml
build-win-signed.yml increase timeout on windows build 2026-01-05 09:09:57 -08:00
build_libcxx_msan.sh
coverage.yml
find_non_defined_param_eval_patterns.py
generate-doc.yml
jsdoctest.yml
mk_consts_files.py
mk_copyright.py
mk_def_file.py
mk_exception.py
mk_genfile_common.py
mk_gparams_register_modules_cpp.py
mk_install_tactic_cpp.py
mk_make.py
mk_mem_initializer_cpp.py
mk_nuget_task.py
mk_pat_db.py
mk_project.py
mk_unix_dist.py Fix mk_unix_dist.py cross-compilation from ARM to x64 on macOS (#8222) 2026-01-17 10:19:10 -08:00
mk_unix_dist_cmake.py
mk_util.py AIX compat (#8113) 2026-01-05 07:23:05 -08:00
mk_win_dist.py
mk_win_dist_cmake.py
nightly.yaml Update ARM GCC toolchain to 13.3 for C++20 std::format support (#8196) 2026-01-14 17:09:06 -08:00
policy.json
pyg2hpp.py
README
release.yml Update ARM GCC toolchain to 13.3 for C++20 std::format support (#8196) 2026-01-14 17:09:06 -08:00
test-examples-cmake.yml
test-java-cmake.yml
test-jupyter.yml
test-regressions-coverage.yml
test-regressions.yml
test-z3.yml
trackall.sh
update_api.py Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
update_header_guards.py
update_include.py
update_version.py
VERSION.txt
vsts-mac.sh
vsts-vs2013.cmd
vsts-vs2017.cmd

Instructions for updating external Z3 API
-----------------------------------------

The python "macros": def_Type() and def_API() are used to add new types and function definitions to the Z3 API.
The .h files provided to `mk_bindings(API_files)` contain these definitions.
See src\api\z3_api.h for many examples.

The bindings for .Net and Python are generated when mk_make.py is invoked.