Skip to content

Commit f2e672d

Browse files
committed
Fix build
Signed-off-by: Bob Weinand <[email protected]>
1 parent c7cc227 commit f2e672d

File tree

7 files changed

+15
-32
lines changed

7 files changed

+15
-32
lines changed

.gitlab/generate-package.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,11 @@
489489
ABI_NO: "<?= $abi_no ?>"
490490
PHP_VERSION: "<?= $major_minor ?>"
491491
GIT_STRATEGY: clone
492-
GIT_CONFIG_COUNT: 1
492+
GIT_CONFIG_COUNT: 2
493493
GIT_CONFIG_KEY_0: core.longpaths
494494
GIT_CONFIG_VALUE_0: true
495+
GIT_CONFIG_KEY_1: core.symlinks
496+
GIT_CONFIG_VALUE_1: true
495497
CONTAINER_NAME: ${CI_JOB_NAME_SLUG}-${CI_JOB_ID}
496498
script: |
497499
# Make sure we actually fail if a command fails
@@ -1054,9 +1056,11 @@
10541056
stage: verify
10551057
tags: [ "windows-v2:2019"]
10561058
variables:
1057-
GIT_CONFIG_COUNT: 1
1059+
GIT_CONFIG_COUNT: 2
10581060
GIT_CONFIG_KEY_0: core.longpaths
10591061
GIT_CONFIG_VALUE_0: true
1062+
GIT_CONFIG_KEY_1: core.symlinks
1063+
GIT_CONFIG_VALUE_1: true
10601064
needs:
10611065
- job: "package extension windows"
10621066
artifacts: true

.gitlab/generate-tracer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ function before_script_steps() {
116116
- PHP_MAJOR_MINOR: <?= json_encode($windows_minor_major_targets) ?>
117117

118118
variables:
119-
GIT_CONFIG_COUNT: 1
119+
GIT_CONFIG_COUNT: 2
120120
GIT_CONFIG_KEY_0: core.longpaths
121121
GIT_CONFIG_VALUE_0: true
122+
GIT_CONFIG_KEY_1: core.symlinks
123+
GIT_CONFIG_VALUE_1: true
122124
CONTAINER_NAME: $CI_JOB_NAME_SLUG
123125
GIT_STRATEGY: clone
124126
IMAGE: "registry.ddbuild.io/images/mirror/datadog/dd-trace-ci:php-${PHP_MAJOR_MINOR}_windows"

Cargo.lock

Lines changed: 1 addition & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ RUN_TESTS_CMD := DD_SERVICE= DD_ENV= REPORT_EXIT_STATUS=1 TEST_PHP_SRCDIR=$(PROJ
4848

4949
C_FILES = $(shell find components components-rs ext src/dogstatsd zend_abstract_interface -name '*.c' -o -name '*.h' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
5050
TEST_FILES = $(shell find tests/ext -name '*.php*' -o -name '*.inc' -o -name '*.json' -o -name '*.yaml' -o -name 'CONFLICTS' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
51-
RUST_FILES = $(BUILD_DIR)/Cargo.toml $(BUILD_DIR)/Cargo.lock $(shell find components-rs -name '*.c' -o -name '*.rs' -o -name 'Cargo.toml' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' ) $(shell find libdatadog/{datadog-alloc,build-common,datadog-crashtracker,datadog-crashtracker-ffi,data-pipeline,ddcommon,ddcommon-ffi,ddsketch,ddtelemetry,ddtelemetry-ffi,dogstatsd-client,datadog-ipc,datadog-ipc-macros,datadog-library-config,datadog-library-config-ffi,datadog-live-debugger,datadog-live-debugger-ffi,datadog-log,datadog-remote-config,datadog-sidecar,datadog-sidecar-ffi,datadog-sidecar-macros,spawn_worker,tinybytes,tools/sidecar_mockgen,datadog-trace-*,Cargo.toml} -type f \( -path "*/src*" -o -path "*/examples*" -o -path "*Cargo.toml" -o -path "*/build.rs" -o -path "*/tests/dataservice.rs" -o -path "*/tests/service_functional.rs" \) -not -path "*/datadog-ipc/build.rs" -not -path "*/datadog-sidecar-ffi/build.rs")
51+
RUST_FILES = $(BUILD_DIR)/Cargo.toml $(BUILD_DIR)/Cargo.lock $(shell find components-rs -name '*.c' -o -name '*.rs' -o -name 'Cargo.toml' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' ) $(shell find libdatadog/{datadog-alloc,build-common,datadog-crashtracker,datadog-crashtracker-ffi,data-pipeline,ddcommon,ddcommon-ffi,ddsketch,ddtelemetry,ddtelemetry-ffi,dogstatsd-client,datadog-ipc,datadog-ipc-macros,datadog-library-config,datadog-library-config-ffi,datadog-live-debugger,datadog-live-debugger-ffi,datadog-log,datadog-remote-config,datadog-sidecar,datadog-sidecar-ffi,datadog-sidecar-macros,spawn_worker,tinybytes,tools/{cc_utils,sidecar_mockgen},datadog-trace-*,Cargo.toml} \( -type l -o -type f \) \( -path "*/src*" -o -path "*/examples*" -o -path "*Cargo.toml" -o -path "*/build.rs" -o -path "*/tests/dataservice.rs" -o -path "*/tests/service_functional.rs" \) -not -path "*/datadog-ipc/build.rs" -not -path "*/datadog-sidecar-ffi/build.rs")
5252
ALL_OBJECT_FILES = $(C_FILES) $(RUST_FILES) $(BUILD_DIR)/Makefile
5353
TEST_OPCACHE_FILES = $(shell find tests/opcache -name '*.php*' -o -name '.gitkeep' | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )
5454
TEST_STUB_FILES = $(shell find tests/ext -type d -name 'stubs' -exec find '{}' -type f \; | awk '{ printf "$(BUILD_DIR)/%s\n", $$1 }' )

components-rs/php_sidecar_mockgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "php_sidecar_mockgen"
44
version = "0.1.0"
55

66
[dependencies]
7-
ddcommon = { path = "../../libdatadog/ddcommon" }
7+
cc_utils = { path = "../../libdatadog/tools/cc_utils" }
88
current_platform = "0.2.0"
99
sidecar_mockgen = { path = "../../libdatadog/tools/sidecar_mockgen" }
1010

components-rs/php_sidecar_mockgen/src/bin/php_sidecar_mockgen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
22
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2021-Present Datadog, Inc.
33

4-
pub use ddcommon::cc_utils::cc;
4+
pub use cc_utils::cc;
55
pub use sidecar_mockgen::generate_mock_symbols;
66
use std::path::Path;
77
use std::{env, fs, process};
@@ -58,7 +58,7 @@ fn main() {
5858
cc_build.target(current_platform::CURRENT_PLATFORM);
5959
}
6060

61-
ddcommon::cc_utils::ImprovedBuild::new()
61+
cc_utils::ImprovedBuild::new()
6262
.set_cc_builder(cc_build)
6363
.file("mock_php_syms.c")
6464
.link_dynamically("dl")

0 commit comments

Comments
 (0)