Skip to content

Commit fda4bef

Browse files
[chore] Fix codecov script (#24421)
## Description This PR fixes the nightly code coverage issue; the `config-patch` got broken due to the addition of a `target` section in the `~/.cargo/config.toml`. ## Test plan Code coverage workflow should run successfully. It was manually triggered to check the fix. --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] Indexing Framework:
1 parent 0adf70d commit fda4bef

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.cargo/config.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ move-clippy = [
2828
"-Aclippy::needless_borrows_for_generic_args",
2929
]
3030

31+
[build]
32+
rustflags = ["-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-A", "unknown_lints", "-A", "mismatched_lifetime_syntaxes"]
33+
3134
[target.x86_64-pc-windows-msvc]
3235
rustflags = ["-C", "link-args=/STACK:8388608"] # increase stack size to 8MB for Windows to avoid stack overflow in main thread
3336

34-
[build]
35-
rustflags = ["-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-A", "unknown_lints", "-A", "mismatched_lifetime_syntaxes"]

scripts/simtest/config-patch

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ diff --git a/.cargo/config.toml b/.cargo/config.toml
22
index e813938e5b..6eb22f38d1 100644
33
--- a/.cargo/config.toml
44
+++ b/.cargo/config.toml
5-
@@ -29,4 +29,4 @@ move-clippy = [
5+
@@ -29,7 +29,7 @@
66
]
77

88
[build]
99
-rustflags = ["-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-A", "unknown_lints", "-A", "mismatched_lifetime_syntaxes"]
1010
+rustflags = ["-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-A", "unknown_lints", "-A", "mismatched_lifetime_syntaxes", "--cfg", "msim"]
11+
12+
[target.x86_64-pc-windows-msvc]
13+
rustflags = ["-C", "link-args=/STACK:8388608"] # increase stack size to 8MB for Windows to avoid stack overflow in main thread
1114
diff --git a/Cargo.toml b/Cargo.toml
1215
index 2322475d08..0e9ccd0479 100644
1316
--- a/Cargo.toml

0 commit comments

Comments
 (0)