petk / php-build-system

Carefully crafted, CMake-based PHP build system
21 stars 2 forks source link

Simplify JIT configuration #17

Closed petk closed 1 week ago

petk commented 1 week ago

JIT directory can be nicely wrapped as a simple OBJECT library. In this case everything seems to propagate properly forward.

Edit: This didn't work as it complicates propagating compile options. Bottom rule of a thumb: adding separate libraries inside a mono-repo needs a subdirectory to be as much self-contained as possible. Subdirectories like this are very tied to the global PHP and Zend headers and even compile properties of the extension itself.