浏览代码

-gc or {$CHECKPOINTER ON} requires heaptrc unit loading even for units

git-svn-id: trunk@34261 -
pierre 9 年之前
父节点
当前提交
3a9f2f55f4
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      compiler/pmodules.pas

+ 3 - 1
compiler/pmodules.pas

@@ -349,7 +349,9 @@ implementation
                AddUnit('fpextres')
              else
                AddUnit('fpintres');
-         end;
+         end
+        else if (cs_checkpointer in current_settings.localswitches) then
+          AddUnit('heaptrc');
         { Objpas unit? }
         if m_objpas in current_settings.modeswitches then
           AddUnit('objpas');