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 44# [registries.ms-crates-io]
55# index = "sparse+https://pkgs.dev.azure.com/vscode/_packaging/crates/Cargo/index/"
66
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+
712# -Cehcont_guard: Enable EH Continuation Metadata (https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-eh-continuation-metadata).
813# -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).
914# -Ctarget-feature=+crt-static: Statically link the CRT (required to link the spectre-mitigated CRT).
1015[target.'cfg(target_os = "windows")']
11- rustflags = ["-Cehcont_guard", "-Ccontrol-flow-guard", "-Ctarget-feature=+crt-static" ]
16+ rustflags = ["-Cehcont_guard", "-Ccontrol-flow-guard"]
1217
1318# -Clink-args=/DYNAMICBASE /CETCOMPAT: Enable "shadow stack" (https://learn.microsoft.com/en-us/cpp/build/reference/cetcompat)
1419[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