Explorar el Código

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

git-svn-id: trunk@34261 -
pierre hace 9 años
padre
commit
3a9f2f55f4
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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');