cmVS11CLFlagTable.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. static cmVS7FlagTable cmVS11CLFlagTable[] =
  2. {
  3. //Enum Properties
  4. {"DebugInformationFormat", "",
  5. "None", "None", 0},
  6. {"DebugInformationFormat", "Z7",
  7. "C7 compatible", "OldStyle", 0},
  8. {"DebugInformationFormat", "Zi",
  9. "Program Database", "ProgramDatabase", 0},
  10. {"DebugInformationFormat", "ZI",
  11. "Program Database for Edit And Continue", "EditAndContinue", 0},
  12. {"WarningLevel", "W0",
  13. "Turn Off All Warnings", "TurnOffAllWarnings", 0},
  14. {"WarningLevel", "W1",
  15. "Level1", "Level1", 0},
  16. {"WarningLevel", "W2",
  17. "Level2", "Level2", 0},
  18. {"WarningLevel", "W3",
  19. "Level3", "Level3", 0},
  20. {"WarningLevel", "W4",
  21. "Level4", "Level4", 0},
  22. {"WarningLevel", "Wall",
  23. "EnableAllWarnings", "EnableAllWarnings", 0},
  24. {"Optimization", "Od",
  25. "Disabled", "Disabled", 0},
  26. {"Optimization", "O1",
  27. "Minimize Size", "MinSpace", 0},
  28. {"Optimization", "O2",
  29. "Maximize Speed", "MaxSpeed", 0},
  30. {"Optimization", "Ox",
  31. "Full Optimization", "Full", 0},
  32. {"InlineFunctionExpansion", "",
  33. "Default", "Default", 0},
  34. {"InlineFunctionExpansion", "Ob0",
  35. "Disabled", "Disabled", 0},
  36. {"InlineFunctionExpansion", "Ob1",
  37. "Only __inline", "OnlyExplicitInline", 0},
  38. {"InlineFunctionExpansion", "Ob2",
  39. "Any Suitable", "AnySuitable", 0},
  40. {"FavorSizeOrSpeed", "Os",
  41. "Favor small code", "Size", 0},
  42. {"FavorSizeOrSpeed", "Ot",
  43. "Favor fast code", "Speed", 0},
  44. {"FavorSizeOrSpeed", "",
  45. "Neither", "Neither", 0},
  46. {"ExceptionHandling", "EHa",
  47. "Yes with SEH Exceptions", "Async", 0},
  48. {"ExceptionHandling", "EHsc",
  49. "Yes", "Sync", 0},
  50. {"ExceptionHandling", "EHs",
  51. "Yes with Extern C functions", "SyncCThrow", 0},
  52. {"ExceptionHandling", "",
  53. "No", "false", 0},
  54. {"BasicRuntimeChecks", "RTCs",
  55. "Stack Frames", "StackFrameRuntimeCheck", 0},
  56. {"BasicRuntimeChecks", "RTCu",
  57. "Uninitialized variables", "UninitializedLocalUsageCheck", 0},
  58. {"BasicRuntimeChecks", "RTC1",
  59. "Both (/RTC1, equiv. to /RTCsu)", "EnableFastChecks", 0},
  60. {"BasicRuntimeChecks", "",
  61. "Default", "Default", 0},
  62. {"RuntimeLibrary", "MT",
  63. "Multi-threaded", "MultiThreaded", 0},
  64. {"RuntimeLibrary", "MTd",
  65. "Multi-threaded Debug", "MultiThreadedDebug", 0},
  66. {"RuntimeLibrary", "MD",
  67. "Multi-threaded DLL", "MultiThreadedDLL", 0},
  68. {"RuntimeLibrary", "MDd",
  69. "Multi-threaded Debug DLL", "MultiThreadedDebugDLL", 0},
  70. {"StructMemberAlignment", "Zp1",
  71. "1 Byte", "1Byte", 0},
  72. {"StructMemberAlignment", "Zp2",
  73. "2 Bytes", "2Bytes", 0},
  74. {"StructMemberAlignment", "Zp4",
  75. "4 Byte", "4Bytes", 0},
  76. {"StructMemberAlignment", "Zp8",
  77. "8 Bytes", "8Bytes", 0},
  78. {"StructMemberAlignment", "Zp16",
  79. "16 Bytes", "16Bytes", 0},
  80. {"StructMemberAlignment", "",
  81. "Default", "Default", 0},
  82. {"EnableEnhancedInstructionSet", "arch:SSE",
  83. "Streaming SIMD Extensions", "StreamingSIMDExtensions", 0},
  84. {"EnableEnhancedInstructionSet", "arch:SSE2",
  85. "Streaming SIMD Extensions 2", "StreamingSIMDExtensions2", 0},
  86. {"EnableEnhancedInstructionSet", "arch:AVX",
  87. "Advanced Vector Extensions", "AdvancedVectorExtensions", 0},
  88. {"EnableEnhancedInstructionSet", "arch:IA32",
  89. "No Enhanced Instructions", "NoExtensions", 0},
  90. {"EnableEnhancedInstructionSet", "",
  91. "Not Set", "NotSet", 0},
  92. {"FloatingPointModel", "fp:precise",
  93. "Precise", "Precise", 0},
  94. {"FloatingPointModel", "fp:strict",
  95. "Strict", "Strict", 0},
  96. {"FloatingPointModel", "fp:fast",
  97. "Fast", "Fast", 0},
  98. {"PrecompiledHeader", "Yc",
  99. "Create", "Create",
  100. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
  101. {"PrecompiledHeader", "Yu",
  102. "Use", "Use",
  103. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
  104. {"PrecompiledHeader", "",
  105. "Not Using Precompiled Headers", "NotUsing", 0},
  106. {"AssemblerOutput", "",
  107. "No Listing", "NoListing", 0},
  108. {"AssemblerOutput", "FA",
  109. "Assembly-Only Listing", "AssemblyCode", 0},
  110. {"AssemblerOutput", "FAc",
  111. "Assembly With Machine Code", "AssemblyAndMachineCode", 0},
  112. {"AssemblerOutput", "FAs",
  113. "Assembly With Source Code", "AssemblyAndSourceCode", 0},
  114. {"AssemblerOutput", "FAcs",
  115. "Assembly, Machine Code and Source", "All", 0},
  116. {"CallingConvention", "Gd",
  117. "__cdecl", "Cdecl", 0},
  118. {"CallingConvention", "Gr",
  119. "__fastcall", "FastCall", 0},
  120. {"CallingConvention", "Gz",
  121. "__stdcall", "StdCall", 0},
  122. {"CompileAs", "",
  123. "Default", "Default", 0},
  124. {"CompileAs", "TC",
  125. "Compile as C Code", "CompileAsC", 0},
  126. {"CompileAs", "TP",
  127. "Compile as C++ Code", "CompileAsCpp", 0},
  128. {"ErrorReporting", "errorReport:none",
  129. "Do Not Send Report", "None", 0},
  130. {"ErrorReporting", "errorReport:prompt",
  131. "Prompt Immediately", "Prompt", 0},
  132. {"ErrorReporting", "errorReport:queue",
  133. "Queue For Next Login", "Queue", 0},
  134. {"ErrorReporting", "errorReport:send",
  135. "Send Automatically", "Send", 0},
  136. {"CompileAsManaged", "",
  137. "No Common Language RunTime Support", "false", 0},
  138. {"CompileAsManaged", "clr",
  139. "Common Language RunTime Support", "true", 0},
  140. {"CompileAsManaged", "clr:pure",
  141. "Pure MSIL Common Language RunTime Support", "Pure", 0},
  142. {"CompileAsManaged", "clr:safe",
  143. "Safe MSIL Common Language RunTime Support", "Safe", 0},
  144. {"CompileAsManaged", "clr:oldSyntax",
  145. "Common Language RunTime Support, Old Syntax", "OldSyntax", 0},
  146. //Bool Properties
  147. {"CompileAsWinRT", "ZW", "", "true", 0},
  148. {"WinRTNoStdLib", "ZW:nostdlib", "", "true", 0},
  149. {"SuppressStartupBanner", "nologo-", "", "false", 0},
  150. {"SuppressStartupBanner", "nologo", "", "true", 0},
  151. {"TreatWarningAsError", "WX-", "", "false", 0},
  152. {"TreatWarningAsError", "WX", "", "true", 0},
  153. {"SDLCheck", "sdl-", "", "false", 0},
  154. {"SDLCheck", "sdl", "", "true", 0},
  155. {"IntrinsicFunctions", "Oi", "", "true", 0},
  156. {"OmitFramePointers", "Oy-", "", "false", 0},
  157. {"OmitFramePointers", "Oy", "", "true", 0},
  158. {"EnableFiberSafeOptimizations", "GT", "", "true", 0},
  159. {"WholeProgramOptimization", "GL", "", "true", 0},
  160. {"UndefineAllPreprocessorDefinitions", "u", "", "true", 0},
  161. {"IgnoreStandardIncludePath", "X", "", "true", 0},
  162. {"PreprocessToFile", "P", "", "true", 0},
  163. {"PreprocessSuppressLineNumbers", "EP", "", "true", 0},
  164. {"PreprocessKeepComments", "C", "", "true", 0},
  165. {"StringPooling", "GF-", "", "false", 0},
  166. {"StringPooling", "GF", "", "true", 0},
  167. {"MinimalRebuild", "Gm-", "", "false", 0},
  168. {"MinimalRebuild", "Gm", "", "true", 0},
  169. {"SmallerTypeCheck", "RTCc", "", "true", 0},
  170. {"BufferSecurityCheck", "GS-", "", "false", 0},
  171. {"BufferSecurityCheck", "GS", "", "true", 0},
  172. {"FunctionLevelLinking", "Gy-", "", "false", 0},
  173. {"FunctionLevelLinking", "Gy", "", "true", 0},
  174. {"EnableParallelCodeGeneration", "Qpar-", "", "false", 0},
  175. {"EnableParallelCodeGeneration", "Qpar", "", "true", 0},
  176. {"FloatingPointExceptions", "fp:except-", "", "false", 0},
  177. {"FloatingPointExceptions", "fp:except", "", "true", 0},
  178. {"CreateHotpatchableImage", "hotpatch", "", "true", 0},
  179. {"DisableLanguageExtensions", "Za", "", "true", 0},
  180. {"TreatWChar_tAsBuiltInType", "Zc:wchar_t-", "", "false", 0},
  181. {"TreatWChar_tAsBuiltInType", "Zc:wchar_t", "", "true", 0},
  182. {"ForceConformanceInForLoopScope", "Zc:forScope-", "", "false", 0},
  183. {"ForceConformanceInForLoopScope", "Zc:forScope", "", "true", 0},
  184. {"RuntimeTypeInfo", "GR-", "", "false", 0},
  185. {"RuntimeTypeInfo", "GR", "", "true", 0},
  186. {"OpenMPSupport", "openmp-", "", "false", 0},
  187. {"OpenMPSupport", "openmp", "", "true", 0},
  188. {"ExpandAttributedSource", "Fx", "", "true", 0},
  189. {"UseUnicodeForAssemblerListing", "FAu", "", "true", 0},
  190. {"ShowIncludes", "showIncludes", "", "true", 0},
  191. {"EnablePREfast", "analyze-", "", "false", 0},
  192. {"EnablePREfast", "analyze", "", "true", 0},
  193. {"UseFullPaths", "FC", "", "true", 0},
  194. {"OmitDefaultLibName", "Zl", "", "true", 0},
  195. //Bool Properties With Argument
  196. {"MultiProcessorCompilation", "MP", "", "true",
  197. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
  198. {"ProcessorNumber", "MP", "Multi-processor Compilation", "",
  199. cmVS7FlagTable::UserValueRequired},
  200. {"GenerateXMLDocumentationFiles", "doc", "", "true",
  201. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
  202. {"XMLDocumentationFileName", "doc", "Generate XML Documentation Files", "",
  203. cmVS7FlagTable::UserValueRequired},
  204. {"BrowseInformation", "FR", "", "true",
  205. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
  206. {"BrowseInformationFile", "FR", "Enable Browse Information", "",
  207. cmVS7FlagTable::UserValueRequired},
  208. //String List Properties
  209. {"AdditionalIncludeDirectories", "I",
  210. "Additional Include Directories",
  211. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  212. {"AdditionalUsingDirectories", "AI",
  213. "Additional #using Directories",
  214. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  215. {"PreprocessorDefinitions", "D ",
  216. "Preprocessor Definitions",
  217. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  218. {"UndefinePreprocessorDefinitions", "U",
  219. "Undefine Preprocessor Definitions",
  220. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  221. {"DisableSpecificWarnings", "wd",
  222. "Disable Specific Warnings",
  223. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  224. {"ForcedIncludeFiles", "FI",
  225. "Forced Include File",
  226. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  227. {"ForcedUsingFiles", "FU",
  228. "Forced #using File",
  229. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  230. {"PREfastAdditionalOptions", "analyze:",
  231. "Additional Code Analysis Native options",
  232. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  233. {"PREfastAdditionalPlugins", "analyze:plugin",
  234. "Additional Code Analysis Native plugins",
  235. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  236. {"TreatSpecificWarningsAsErrors", "we",
  237. "Treat Specific Warnings As Errors",
  238. "", cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable},
  239. //String Properties
  240. // Skip [TrackerLogDirectory] - no command line Switch.
  241. {"PreprocessOutputPath", "Fi",
  242. "Preprocess Output Path",
  243. "", cmVS7FlagTable::UserValue},
  244. {"PrecompiledHeaderFile", "Yc",
  245. "Precompiled Header Name",
  246. "", cmVS7FlagTable::UserValueRequired},
  247. {"PrecompiledHeaderFile", "Yu",
  248. "Precompiled Header Name",
  249. "", cmVS7FlagTable::UserValueRequired},
  250. {"PrecompiledHeaderOutputFile", "Fp",
  251. "Precompiled Header Output File",
  252. "", cmVS7FlagTable::UserValue},
  253. {"AssemblerListingLocation", "Fa",
  254. "ASM List Location",
  255. "", cmVS7FlagTable::UserValue},
  256. {"ObjectFileName", "Fo",
  257. "Object File Name",
  258. "", cmVS7FlagTable::UserValue},
  259. {"ProgramDataBaseFileName", "Fd",
  260. "Program Database File Name",
  261. "", cmVS7FlagTable::UserValue},
  262. // Skip [XMLDocumentationFileName] - no command line Switch.
  263. // Skip [BrowseInformationFile] - no command line Switch.
  264. {"PREfastLog", "analyze:log ",
  265. "Code Analysis Log",
  266. "", cmVS7FlagTable::UserValue},
  267. // Skip [AdditionalOptions] - no command line Switch.
  268. {0,0,0,0,0}
  269. };