Skip to content

Commit

Permalink
build(windows): Statically link CRT on Windows (#2203)
Browse files Browse the repository at this point in the history
Statically link the CRT on Windows. This eliminates Sentry CLI's
dependency on `VCRUNTIME140.dll`, allowing Sentry CLI to be run on a
clean install of Windows, without requiring any external dependencies.

Fixes #2193
Closes #2201
  • Loading branch information
szokeasaurusrex authored Oct 30, 2024
1 parent 6d0729d commit 69fe89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.'cfg(all(windows, target_env = "msvc"))']
rustflags = ["-C", "target-feature=+crt-static"]
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
target
.DS_Store
.cargo
node_modules
coverage
dist
Expand Down

0 comments on commit 69fe89f

Please sign in to comment.