summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorStephan Szabo <stephan.szabo@sony.com>2018-11-26 17:15:27 (GMT)
committerStephan Szabo <stephan.szabo@sony.com>2018-11-28 15:43:30 (GMT)
commitf1223e34c653e4ed6a5f86fe17ae72e7d7a89e9a (patch)
treec03c6825be7c94c22543ff9b0b793706c3c6addb /Templates
parentefc90eed7768e1263c60b299e24c6293df274708 (diff)
downloadCMake-f1223e34c653e4ed6a5f86fe17ae72e7d7a89e9a.zip
CMake-f1223e34c653e4ed6a5f86fe17ae72e7d7a89e9a.tar.gz
CMake-f1223e34c653e4ed6a5f86fe17ae72e7d7a89e9a.tar.bz2
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
Diffstat (limited to 'Templates')
-rw-r--r--Templates/MSBuild/FlagTables/v140_CL.json7
-rw-r--r--Templates/MSBuild/FlagTables/v141_CL.json7
2 files changed, 14 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v140_CL.json b/Templates/MSBuild/FlagTables/v140_CL.json
index f75cff5..853df07 100644
--- a/Templates/MSBuild/FlagTables/v140_CL.json
+++ b/Templates/MSBuild/FlagTables/v140_CL.json
@@ -790,6 +790,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",
diff --git a/Templates/MSBuild/FlagTables/v141_CL.json b/Templates/MSBuild/FlagTables/v141_CL.json
index db4380e..124e45d 100644
--- a/Templates/MSBuild/FlagTables/v141_CL.json
+++ b/Templates/MSBuild/FlagTables/v141_CL.json
@@ -853,6 +853,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",