Skip to content

Commit fc8378e

Browse files
committed
Downgrade tempfile
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
1 parent bd9d038 commit fc8378e

4 files changed

Lines changed: 11 additions & 31 deletions

File tree

Cargo.lock

Lines changed: 8 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,7 @@ $(PACKAGES_BUILD_DIR)/datadog-setup.php: $(PACKAGES_BUILD_DIR)
500500
$(PACKAGES_BUILD_DIR)
501501

502502
build_pecl_package:
503-
BUILD_DIR='$(BUILD_DIR)/'; \
504-
FILES="$(C_FILES) $(RUST_FILES) $(TEST_FILES) $(TEST_STUB_FILES) $(M4_FILES) Cargo.lock"; \
505-
tooling/bin/pecl-build $${FILES//$${BUILD_DIR}/}
503+
echo $(subst $(BUILD_DIR)/,,$(C_FILES) $(RUST_FILES) $(TEST_FILES) $(TEST_STUB_FILES) $(M4_FILES) Cargo.lock) | tooling/bin/pecl-build
506504

507505
dbgsym.tar.gz: $(PACKAGES_BUILD_DIR)
508506
$(if $(DDTRACE_MAKE_PACKAGES_ASAN), , tar -zcf $(PACKAGES_BUILD_DIR)/dd-library-php-$(VERSION)_windows_debugsymbols.tar.gz ./extensions_x86_64_debugsymbols --owner=0 --group=0)

tooling/bin/pecl-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ configuration_placeholder='
1919
'
2020

2121
codefiles=""
22-
for file in "$@"; do
22+
for file in $(cat); do # cat to read from STDIN
2323
codefiles="${codefiles}"$'\n <file name="'"${file}"'" role="'"$([[ $file == tests/* ]] && echo test || echo src)"'" '"$([[ $file == */configuration.h ]] && echo ">$configuration_placeholder" || echo "/>")"
2424
done
2525

0 commit comments

Comments
 (0)