浏览代码

Remove sortalgs unit for wasm32 CPU instead of only wasi target, as it is the wasm32 cpu that does not support gotos

Pierre Muller 3 年之前
父节点
当前提交
b02b3b79b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/rtl-extra/fpmake.pp

+ 2 - 2
packages/rtl-extra/fpmake.pp

@@ -159,8 +159,8 @@ begin
      begin
        addinclude('clocale.inc',clocaleincOSes);
      end;
-    T:=P.Targets.AddUnit('sortalgs.pp',AllTargetsextra
-                                       -[wasi]);  { uses goto, which is not supported on the WebAssembly target }
+    { sortalgs unit source code uses goto, which is not supported on wasm32 CPU }
+    T:=P.Targets.AddUnit('sortalgs.pp',AllCPUs-[wasm32], AllTargetsextra);
   end
 end;