diff options
author | Brad King <brad.king@kitware.com> | 2016-11-30 19:20:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-30 19:20:15 (GMT) |
commit | 418afd5b2c4e7e55f157e05d3afb1223d38d4829 (patch) | |
tree | 47198559dc6ad3b17575d9d4ec97abd3b837d3f6 /Source/cmVS140CLFlagTable.h | |
parent | 315d44f77348ab80824353df2622c3d3d5445518 (diff) | |
download | CMake-418afd5b2c4e7e55f157e05d3afb1223d38d4829.zip CMake-418afd5b2c4e7e55f157e05d3afb1223d38d4829.tar.gz CMake-418afd5b2c4e7e55f157e05d3afb1223d38d4829.tar.bz2 |
VS: Add v140 flag table entries for `-Zc:inline[-]`
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
Suggested-by: Serti Ayoub <ayb.serti@gmail.com>
Diffstat (limited to 'Source/cmVS140CLFlagTable.h')
-rw-r--r-- | Source/cmVS140CLFlagTable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmVS140CLFlagTable.h b/Source/cmVS140CLFlagTable.h index 317cc18..60b4379 100644 --- a/Source/cmVS140CLFlagTable.h +++ b/Source/cmVS140CLFlagTable.h @@ -164,6 +164,8 @@ static cmVS7FlagTable cmVS140CLFlagTable[] = { { "TreatWChar_tAsBuiltInType", "Zc:wchar_t", "", "true", 0 }, { "ForceConformanceInForLoopScope", "Zc:forScope-", "", "false", 0 }, { "ForceConformanceInForLoopScope", "Zc:forScope", "", "true", 0 }, + { "RemoveUnreferencedCodeData", "Zc:inline-", "", "false", 0 }, + { "RemoveUnreferencedCodeData", "Zc:inline", "", "true", 0 }, { "RuntimeTypeInfo", "GR-", "", "false", 0 }, { "RuntimeTypeInfo", "GR", "", "true", 0 }, { "OpenMPSupport", "openmp-", "", "false", 0 }, |