浏览代码

+ On GO32, GBA and NDS, disable RTL features that aren't implemented.

git-svn-id: trunk@6521 -
daniel 18 年之前
父节点
当前提交
a662c5fedb
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 1 2
      compiler/globals.pas
  2. 6 0
      compiler/parser.pas

+ 1 - 2
compiler/globals.pas

@@ -1198,8 +1198,7 @@ implementation
         LinkLibraryOrder   :=TLinkStrMap.Create;
 
         { enable all features by default }
-        for i:=low(tfeature) to high(tfeature) do
-          include(features,i);
+        features:=[low(Tfeature)..high(Tfeature)];
      end;
 
 end.

+ 6 - 0
compiler/parser.pas

@@ -120,6 +120,12 @@ implementation
              include(supported_calling_conventions,pocall_syscall);
            system_m68k_amiga:
              include(supported_calling_conventions,pocall_syscall);
+           system_arm_gba:
+             features:=features-[f_threading,f_commandargs,f_fileio,f_textio];
+           system_arm_nds:
+             features:=features-[f_threading,f_commandargs,f_fileio,f_textio];
+           system_i386_go32v2:
+             features:=features-[f_threading];
          end;
       end;