From 734ab61159fad9a19c17d5ad5c6e695535264464 Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Sat, 15 May 2021 09:18:42 +1000 Subject: [PATCH] Fix msvcrt static linking example to work on Windows --- text/1721-crt-static.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/text/1721-crt-static.md b/text/1721-crt-static.md index 0416585657d..bb3637509c2 100644 --- a/text/1721-crt-static.md +++ b/text/1721-crt-static.md @@ -259,7 +259,8 @@ Finally, an example of compiling for MSVC and linking statically to the C runtime would look like: ``` -RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-pc-windows-msvc +set RUSTFLAGS=-C target-feature=+crt-static +cargo build --target x86_64-pc-windows-msvc ``` and similarly, compiling for musl but linking dynamically to the C runtime would