Skip to content

Commit

Permalink
Merge pull request #269 from anmenaga/static_vcruntime
Browse files Browse the repository at this point in the history
Static linking the MSVC runtime
  • Loading branch information
SteveL-MSFT authored Nov 14, 2023
2 parents 24d8dee + e4dad01 commit 5595cd1
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dsc/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions dsc_lib/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions osinfo/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions process/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions registry/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions tools/dsctest/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions tools/test_group_resource/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
4 changes: 4 additions & 0 deletions y2j/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

0 comments on commit 5595cd1

Please sign in to comment.