commit | c6d8b9f7ee355cff1531b0f369cd338a50baeb07 | [log] [tgz] |
---|---|---|
author | Raymond Zhao <raymondzhao@microsoft.com> | Wed Mar 01 17:29:31 2023 |
committer | Mark Mentovai <mark@chromium.org> | Wed Mar 01 18:52:40 2023 |
tree | 7e5ebe9691e4a65f886bcc1be571f9dd46b4ed7f | |
parent | 9d09418933ea2f75cc416e5ce38d15f62acd5c9a [diff] |
Add SpectreMitigation attribute for msvs This CL allows gyp to recognize the SpectreMitigation msvs_attribute and add it to the generated vcxproj file for MSBuild. Possible values for the attribute are Spectre, SpectreLoad, SpectreLoadCF, and false. The /Qspectre compiler option is not enough to add full Spectre mitigation, because even though it causes MSBuild to add additional instructions to the generated object files, it does not cause MSBuild to link against Spectre-mitigated libraries provided by Visual Studio. Change-Id: I8294395659354f3ce60a355622da4b026abcceba Reviewed-on: https://chromium-review.googlesource.com/c/external/gyp/+/4265144 Reviewed-by: Mark Mentovai <mark@chromium.org>
Documents are available at gyp.gsrc.io, or you can check out md-pages
branch to read those documents offline.