You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by ma...@apache.org on 2023/12/18 13:02:01 UTC
(incubator-opendal) 01/01: ci(cargo): Add frame pointer support in build flag
This is an automated email from the ASF dual-hosted git repository.
manjusaka pushed a commit to branch manjusaka/support-framepointer
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 1c4e68a5e94e011a90f2e32b2baae6218ad6661b
Author: Manjusaka <me...@manjusaka.me>
AuthorDate: Mon Dec 18 21:01:42 2023 +0800
ci(cargo): Add frame pointer support in build flag
Signed-off-by: Manjusaka <me...@manjusaka.me>
---
.cargo/config | 4 ++++
.github/scripts/behavior_test/plan.py | 8 ++++++++
2 files changed, 12 insertions(+)
diff --git a/.cargo/config b/.cargo/config
new file mode 100644
index 000000000..eab97dcbf
--- /dev/null
+++ b/.cargo/config
@@ -0,0 +1,4 @@
+[build]
+rustflags = "-C force-frame-pointers=yes -C debuginfo=1"
+[unstable]
+build-std = ["core", "alloc"]
\ No newline at end of file
diff --git a/.github/scripts/behavior_test/plan.py b/.github/scripts/behavior_test/plan.py
index 5fb0c1bc0..3ba3da7aa 100755
--- a/.github/scripts/behavior_test/plan.py
+++ b/.github/scripts/behavior_test/plan.py
@@ -126,6 +126,14 @@ def calculate_hint(changed_files: list[str]) -> Hint:
hint.binding_python = True
hint.binding_nodejs = True
hint.all_service = True
+ if (
+ p.startswith(".cargo/")
+ ):
+ hint.core = True
+ hint.binding_java = True
+ hint.binding_python = True
+ hint.binding_nodejs = True
+ hint.all_service = True
# language binding affected
for language in LANGUAGE_BINDING: