mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 17:08:45 +00:00
Fix build on Mac (#6146)
* Fix finding Python on Mac On Mac you have to specify the version. It also works well on other platforms this way. * Ignore CMake build directories from index * Fix warning about unused variable in release The variable is used in debug only, but it's legit that the compiler does not warn us for that in release.
This commit is contained in:
parent
49b7e9084f
commit
8b29f40152
3 changed files with 19 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -46,6 +46,7 @@ bld_rel/*
|
||||||
bld_dbg_x64/*
|
bld_dbg_x64/*
|
||||||
bld_rel_x64/*
|
bld_rel_x64/*
|
||||||
.vscode
|
.vscode
|
||||||
|
*build*/**
|
||||||
# Auto generated files.
|
# Auto generated files.
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
|
|
|
@ -160,7 +160,7 @@ list(APPEND Z3_COMPONENT_CXX_DEFINES $<$<CONFIG:RelWithDebInfo>:_EXTERNAL_RELEAS
|
||||||
################################################################################
|
################################################################################
|
||||||
# Find Python
|
# Find Python
|
||||||
################################################################################
|
################################################################################
|
||||||
find_package(PythonInterp REQUIRED)
|
find_package(PythonInterp 3 REQUIRED)
|
||||||
message(STATUS "PYTHON_EXECUTABLE: ${PYTHON_EXECUTABLE}")
|
message(STATUS "PYTHON_EXECUTABLE: ${PYTHON_EXECUTABLE}")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -310,7 +310,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void check_size(cell* c) const {
|
void check_size(cell* c) const {
|
||||||
unsigned r;
|
[[maybe_unused]] unsigned r;
|
||||||
while (c) {
|
while (c) {
|
||||||
switch (c->kind()) {
|
switch (c->kind()) {
|
||||||
case SET:
|
case SET:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue