From 0df37903715d900fa5cfa3c51176649ed69d7d50 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 24 Jan 2019 11:53:26 -0500 Subject: VS: Add `-Zc:inline[-]` flag table entry for v142 Apply the change from commit f1223e34c6 (VS: Add v140 flag table entries for `-Zc:inline[-]`, 2018-11-26) to the v142 flag table. The documentation of this option [1] claims that the default is off, but VS seems to use `-Zc:inline` by default if `RemoveUnreferencedCodeData` does not appear in the `.vcxproj` file. Add the flag table entry to allow use of the flag to be configured. [1] https://msdn.microsoft.com/en-us/library/dn642448.aspx --- Templates/MSBuild/FlagTables/v142_CL.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Templates') diff --git a/Templates/MSBuild/FlagTables/v142_CL.json b/Templates/MSBuild/FlagTables/v142_CL.json index 437b711b8e..eff5dec489 100644 --- a/Templates/MSBuild/FlagTables/v142_CL.json +++ b/Templates/MSBuild/FlagTables/v142_CL.json @@ -858,6 +858,13 @@ "value": "true", "flags": [] }, + { + "name": "RemoveUnreferencedCodeData", + "switch": "Zc:inline-", + "comment": "Remove unreferenced code and data", + "value": "false", + "flags": [] + }, { "name": "RemoveUnreferencedCodeData", "switch": "Zc:inline", -- cgit v1.2.1