Skip to content

Commit 734ab61

Browse files
committed
Fix msvcrt static linking example to work on Windows
1 parent 4514182 commit 734ab61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/1721-crt-static.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ Finally, an example of compiling for MSVC and linking statically to the C
259259
runtime would look like:
260260

261261
```
262-
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-pc-windows-msvc
262+
set RUSTFLAGS=-C target-feature=+crt-static
263+
cargo build --target x86_64-pc-windows-msvc
263264
```
264265

265266
and similarly, compiling for musl but linking dynamically to the C runtime would

0 commit comments

Comments
 (0)