From aa0e87f50fa5a5c0a262845666a2b34f148470e9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 20 Aug 2025 17:06:58 -0400 Subject: [PATCH] VS: Add `-Qspectre-` flag table entry for v145 toolset Apply the change from commit a070d87e08 (VS: Populate `-Qspectre-` flag table entry for v143, 2021-07-14, v3.21.1~29^2~7) to the v145 flag table. Sort the longer options before the shorter ones. Remove the default variant with an empty switch. --- Templates/MSBuild/FlagTables/v145_CL.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Templates/MSBuild/FlagTables/v145_CL.json b/Templates/MSBuild/FlagTables/v145_CL.json index 2b8a8f2508..9d955539f3 100644 --- a/Templates/MSBuild/FlagTables/v145_CL.json +++ b/Templates/MSBuild/FlagTables/v145_CL.json @@ -554,9 +554,9 @@ }, { "name": "SpectreMitigation", - "switch": "Qspectre", - "comment": "Enabled", - "value": "Spectre", + "switch": "Qspectre-load-cf", + "comment": "All Control Flow Loads", + "value": "SpectreLoadCF", "flags": [] }, { @@ -568,16 +568,16 @@ }, { "name": "SpectreMitigation", - "switch": "Qspectre-load-cf", - "comment": "All Control Flow Loads", - "value": "SpectreLoadCF", + "switch": "Qspectre-", + "comment": "Disabled", + "value": "false", "flags": [] }, { "name": "SpectreMitigation", - "switch": "", - "comment": "Disabled", - "value": "false", + "switch": "Qspectre", + "comment": "Enabled", + "value": "Spectre", "flags": [] }, {