File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
# [registries.ms-crates-io]
5
5
# index = "sparse+https://pkgs.dev.azure.com/vscode/_packaging/crates/Cargo/index/"
6
6
7
+ # Windows: -Ctarget-feature=+crt-static: Statically link the CRT (required to link the spectre-mitigated CRT).
8
+ # Other: -Ctarget-feature=+crt-static: Statically link the CRT
9
+ [build]
10
+ rustflags = ["-Ctarget-feature=+crt-static"]
11
+
7
12
# -Cehcont_guard: Enable EH Continuation Metadata (https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-eh-continuation-metadata).
8
13
# -Ccontrol-flow-guard: Enable Control Flow Guard, needed for OneBranch's post-build analysis (https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard).
9
14
# -Ctarget-feature=+crt-static: Statically link the CRT (required to link the spectre-mitigated CRT).
10
15
[target.'cfg(target_os = "windows")']
11
- rustflags = ["-Cehcont_guard", "-Ccontrol-flow-guard", "-Ctarget-feature=+crt-static" ]
16
+ rustflags = ["-Cehcont_guard", "-Ccontrol-flow-guard"]
12
17
13
18
# -Clink-args=/DYNAMICBASE /CETCOMPAT: Enable "shadow stack" (https://learn.microsoft.com/en-us/cpp/build/reference/cetcompat)
14
19
[target.'cfg(all(target_os = "windows", any(target_arch = "i686", target_arch = "x86_64")))']
You can’t perform that action at this time.
0 commit comments