Skip to content

Commit

Permalink
Yet another attempt to link vcruntime statically
Browse files Browse the repository at this point in the history
  • Loading branch information
null-dev committed Feb 22, 2022
1 parent f2a2ff9 commit ef2e18c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Statically link C runtime, see: https://volks73.github.io/cargo-wix/cargo_wix/index.html#c-runtime
# We tried using https://github.com/ChrisDenton/static_vcruntime but it doesn't build
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
7 changes: 0 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,4 @@ firefox_profile_switcher_connector = { path = "/usr/bin/ff-pswitch-connector" }
[package.metadata.rpm.files]
"../manifest/manifest-linux.json" = { path = "/usr/lib/mozilla/native-messaging-hosts/ax.nd.profile_switcher_ff.json" }

# Statically link C runtime, see: https://volks73.github.io/cargo-wix/cargo_wix/index.html#c-runtime
# We tried using https://github.com/ChrisDenton/static_vcruntime but it doesn't build
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

# TODO Strip once https://github.com/rust-lang/rust/issues/72110 is on stable

0 comments on commit ef2e18c

Please sign in to comment.