Browse Source

* allow very small heaps for avr

git-svn-id: trunk@33071 -
florian 9 years ago
parent
commit
ddad3b3166
1 changed files with 7 additions and 1 deletions
  1. 7 1
      compiler/options.pas

+ 7 - 1
compiler/options.pas

@@ -1178,7 +1178,13 @@ begin
                     'h' :
                     'h' :
                       begin
                       begin
                          val(copy(more,j+1,length(more)-j),heapsize,code);
                          val(copy(more,j+1,length(more)-j),heapsize,code);
-                         if (code<>0) or (heapsize<1024) then
+                         if (code<>0)
+{$ifdef AVR}
+                         or (heapsize<32)
+{$else AVR}
+                         or (heapsize<1024)
+{$endif AVR}
+                         then
                            IllegalPara(opt);
                            IllegalPara(opt);
                          break;
                          break;
                       end;
                       end;