浏览代码

VS: Add Fortran link flag table entries for /OPT:*

Fixes: #20190
Pavel Liavonau 5 年之前
父节点
当前提交
a3c827b2ea
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 8 - 0
Source/cmLocalVisualStudio7Generator.cxx

@@ -530,6 +530,14 @@ cmVS7FlagTable cmLocalVisualStudio7GeneratorFortranLinkFlagTable[] = {
     "linkIncrementalNo", 0 },
   { "LinkIncremental", "INCREMENTAL:YES", "link incremental",
     "linkIncrementalYes", 0 },
+  { "EnableCOMDATFolding", "OPT:NOICF", "Do not remove redundant COMDATs",
+    "optNoFolding", 0 },
+  { "EnableCOMDATFolding", "OPT:ICF", "Remove redundant COMDATs", "optFolding",
+    0 },
+  { "OptimizeReferences", "OPT:NOREF", "Keep unreferenced data",
+    "optNoReferences", 0 },
+  { "OptimizeReferences", "OPT:REF", "Eliminate unreferenced data",
+    "optReferences", 0 },
   { "", "", "", "", 0 }
 };