Skip to content

Commit

Permalink
build.rs: fix SIGILL in build-script-build when build with cargo zigb…
Browse files Browse the repository at this point in the history
…uild

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
  • Loading branch information
imlk0 committed Feb 24, 2025
1 parent d9f320f commit e37a67d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 88 deletions.
93 changes: 9 additions & 84 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ rand = "0.8.5"
serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0.89"
serde_with = {version = "3.11.0", features = ["json"]}
shadow-rs = "=0.20.1"
shadow-rs = {version = "1.0.0", default-features = false}
tempfile = "3.10.1"
which = "6.0.3"

[build-dependencies]
shadow-rs = "=0.20.1"
shadow-rs = {version = "1.0.0", default-features = false, features = ["tzdb", "build"]}

[dev-dependencies]
again = "0.1.2"
Expand Down
6 changes: 4 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fn main() -> shadow_rs::SdResult<()> {
shadow_rs::new()
use shadow_rs::ShadowBuilder;

fn main() {
ShadowBuilder::builder().build().unwrap();
}

0 comments on commit e37a67d

Please sign in to comment.