summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-24 16:53:26 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-24 18:19:47 (GMT)
commit0df37903715d900fa5cfa3c51176649ed69d7d50 (patch)
tree005ad9e545d007c189d950e4f7d99ecb29bd5c10 /Templates
parentfb2e418c64d915b4d75f55f815e67923216def62 (diff)
downloadCMake-0df37903715d900fa5cfa3c51176649ed69d7d50.zip
CMake-0df37903715d900fa5cfa3c51176649ed69d7d50.tar.gz
CMake-0df37903715d900fa5cfa3c51176649ed69d7d50.tar.bz2
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
Diffstat (limited to 'Templates')
-rw-r--r--Templates/MSBuild/FlagTables/v142_CL.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v142_CL.json b/Templates/MSBuild/FlagTables/v142_CL.json
index 437b711..eff5dec 100644
--- a/Templates/MSBuild/FlagTables/v142_CL.json
+++ b/Templates/MSBuild/FlagTables/v142_CL.json
@@ -860,6 +860,13 @@
},
{
"name": "RemoveUnreferencedCodeData",
+ "switch": "Zc:inline-",
+ "comment": "Remove unreferenced code and data",
+ "value": "false",
+ "flags": []
+ },
+ {
+ "name": "RemoveUnreferencedCodeData",
"switch": "Zc:inline",
"comment": "Remove unreferenced code and data",
"value": "true",