Skip to content

Commit

Permalink
fix: statically link Windows C runtime (#778)
Browse files Browse the repository at this point in the history
* fix: statically link Windows C runtime

* misc: add changeset
  • Loading branch information
Wodann authored Jan 29, 2025
1 parent 7f1847c commit 5c8c3dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-singers-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/edr": patch
---

Fixed crash when loading EDR on Windows without a C Runtime library installed
3 changes: 3 additions & 0 deletions crates/edr_napi/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ target-dir = "./target"
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=-crt-static"]

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

0 comments on commit 5c8c3dd

Please sign in to comment.