Skip to content

Sync include flags #14957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Sync include flags #14957

wants to merge 1 commit into from

Conversation

petk
Copy link
Member

@petk petk commented Jul 14, 2024

This syncs global include flags (-I) for adding php-src, main, Zend, and TSRM. Redundant 'ext' include flag on Windows is removed because Autotools in php-src has already never included it. The 'ext' include flag is only added in phpize builds for BC.

The order of include flags is not important except that build directories are included before their source directory counterparts.

The 'main' in Autotools is (still) prepended as first so compiler doesn't accidentally pick some unrelated
'/../main/php_config.h' due to the <../main/php_config.h> in 'zend_config.h' file.

This syncs global include flags (-I) for adding php-src, main, Zend, and
TSRM. Redundant 'ext' include flag on Windows is removed because
Autotools in php-src has already never included it. The 'ext' include
flag is only added in phpize builds for BC.

The order of include flags is not important except that build
directories are included before their source directory counterparts.

The 'main' in Autotools is (still) prepended as first so compiler
doesn't accidentally pick some unrelated
'<build-dir>/../main/php_config.h' due to the <../main/php_config.h> in
'zend_config.h' file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant