mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
chore: add guard:cf flags to CLI (#232452)
This commit is contained in:
6
cli/.cargo/config.toml
Normal file
6
cli/.cargo/config.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[target.'cfg(all(target_os = "windows", any(target_arch = "i686", target_arch = "x86_64", target_arch = "x86")))']
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-args=/guard:cf", "-Clink-args=/CETCOMPAT"]
|
||||
|
||||
# CETCOMPAT is not supported on ARM binaries
|
||||
[target.'cfg(all(target_os = "windows", not(any(target_arch = "i686", target_arch = "x86_64", target_arch = "x86"))))']
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-args=/guard:cf"]
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
For the moment, we require OpenSSL on Windows, where it is not usually installed by default. To install it:
|
||||
|
||||
1. Install (clone) vcpkg [using their instructions](https://github.com/Microsoft/vcpkg#quick-start-windows)
|
||||
1. Follow steps 1 and 2 of [Set up vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-msbuild?pivots=shell-powershell#1---set-up-vcpkg) to obtain the executable.
|
||||
1. Add the location of the `vcpkg` directory to your system or user PATH.
|
||||
1. Run`vcpkg install openssl:x64-windows-static-md` (after restarting your terminal for PATH changes to apply)
|
||||
1. You should be able to then `cargo build` successfully
|
||||
|
||||
Reference in New Issue
Block a user