3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-11 17:54:43 +00:00
z3/src/ast/normal_forms
Dan Liew 6f48a145aa [CMake] Fix dependencies for generating gparams_register_modules.cpp.
Previously CMake was not aware of which headers files the generation
of `gparams_register_modules.cpp` depended on. Consequently this could result
in broken incremental builds if

* Existing headers that declared module description/parameters change.
* New headers are added that declare module description/parameters.
* `.pyg` files that generate header files that declare module
  description/parameters change

Now the `z3_add_component()` CMake function has been modifed so that

* All header files that are generated from `.pyg` files are added as
dependencies and are scanned from module description/parameter
declarations. This implicit dependency of `gparams_register_modules.cpp`
depending on other generated header files seems unnecessary complex. We
should revisit this design decision once the Python/Makefile build
system is deprecated.

* The function now takes an optional `EXTRA_REGISTER_MODULE_HEADERS`
argument which allows the headers that declare module
description/paramters to be explicitly listed.

With this information CMake will now regenerate `gparams_register_modules.cpp`
correctly.

This required the `mk_gparams_register_modules_internal()` function to be
changed to take a list of header files rather than a list of component
source directories. The two consumers (CMake and Python/Makefile build
systems) of this function have been modified to work with this change.

This partially fixes #1030.
2017-06-21 23:56:46 +01:00
..
CMakeLists.txt [CMake] Fix dependencies for generating gparams_register_modules.cpp. 2017-06-21 23:56:46 +01:00
defined_names.cpp Added rewriter.ignore_patterns_on_ground_qbody option to disable simplification of quantifiers that have their universals appear only in patterns, but otherwise have a ground body. 2017-04-07 21:19:20 +01:00
defined_names.h update header guards to be C++ style. Fixes issue #9 2015-07-08 23:18:40 -07:00
name_exprs.cpp reworking cancellation 2015-12-11 16:21:24 -08:00
name_exprs.h reworking cancellation 2015-12-11 16:21:24 -08:00
nnf.cpp ensure reference ownership on frame elements to avoid crashes due to nnf. Issue #588 2016-05-16 09:37:15 -07:00
nnf.h moving to resource managed cancellation 2015-12-11 13:36:47 -08:00
nnf_params.pyg added module descriptions 2012-12-02 13:15:56 -08:00
pull_quant.cpp Fix spelling errors 2016-07-09 11:46:43 +02:00
pull_quant.h update header guards to be C++ style. Fixes issue #9 2015-07-08 23:18:40 -07:00