[php-src] PR #15783: Autotools: Simplify few PHP_ADD_BUILD_DIR calls
| From: | petk | Date: | Sat, 07 Sep 2024 03:52:15 +0000 |
| Subject: | [php-src] PR #15783: Autotools: Simplify few PHP_ADD_BUILD_DIR calls | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28451@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15783
Author: petk
The $ext_builddir variable for the current extension is set after the PHP_NEW_EXTENSION is called.
But there is also PHP_EXT_BUILDDIR macro which expands to the same value (defined in config-stubs
and phpize), a relative path of the current extension or SAPI. This enables calling
PHP_ADD_BUILD_DIR before the PHP_NEW_EXTENSION and removes some redundant conditions.