-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Windows rustflags This change adds a cargo config.toml with Windows specific rustflags to enable control flow guard, static C runtime, and shadow stack link args. See comments in the config.toml file. * Include msvc_spectre_libs dependency * Try using windows-latest * Revert "Try using windows-latest" This reverts commit be4e0bb. * Fix environment variable override in CI * Update comment
- Loading branch information
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -Ccontrol-flow-guard: Enable Control Flow Guard (https://learn.microsoft.com/en-us/windows/win32/secbp/control-flow-guard). | ||
# -Ctarget-feature=+crt-static: Statically link the CRT (required to link the spectre-mitigated CRT). | ||
# -Clink-args=/DYNAMICBASE /CETCOMPAT: Enable "shadow stack" (https://docs.microsoft.com/en-us/cpp/build/reference/cetcompat) | ||
[target.'cfg(target_os = "windows")'] | ||
rustflags = ["-Ccontrol-flow-guard", "-Ctarget-feature=+crt-static", "-Clink-args=/DYNAMICBASE /CETCOMPAT"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters