From f1223e34c653e4ed6a5f86fe17ae72e7d7a89e9a Mon Sep 17 00:00:00 2001 From: Stephan Szabo Date: Mon, 26 Nov 2018 09:15:27 -0800 Subject: [PATCH] VS: Add v140 flag table entries for `-Zc:inline[-]` Note: Zc:inline was added by generator, but not the - version. Original header commit v3.7.2~8^2 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/v140_CL.json | 7 +++++++ Templates/MSBuild/FlagTables/v141_CL.json | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v140_CL.json b/Templates/MSBuild/FlagTables/v140_CL.json index f75cff52e7..853df07334 100644 --- a/Templates/MSBuild/FlagTables/v140_CL.json +++ b/Templates/MSBuild/FlagTables/v140_CL.json @@ -788,6 +788,13 @@ "value": "true", "flags": [] }, + { + "name": "RemoveUnreferencedCodeData", + "switch": "Zc:inline-", + "comment": "Remove unreferenced code and data", + "value": "false", + "flags": [] + }, { "name": "RemoveUnreferencedCodeData", "switch": "Zc:inline", diff --git a/Templates/MSBuild/FlagTables/v141_CL.json b/Templates/MSBuild/FlagTables/v141_CL.json index db4380ecdb..124e45d3ce 100644 --- a/Templates/MSBuild/FlagTables/v141_CL.json +++ b/Templates/MSBuild/FlagTables/v141_CL.json @@ -851,6 +851,13 @@ "value": "true", "flags": [] }, + { + "name": "RemoveUnreferencedCodeData", + "switch": "Zc:inline-", + "comment": "Remove unreferenced code and data", + "value": "false", + "flags": [] + }, { "name": "RemoveUnreferencedCodeData", "switch": "Zc:inline",