浏览代码

+ support wasm32 in the fpc utility

git-svn-id: branches/wasm@46294 -
nickysn 5 年之前
父节点
当前提交
ee711eb943
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      compiler/utils/fpc.pp

+ 6 - 0
compiler/utils/fpc.pp

@@ -184,6 +184,10 @@ program fpc;
      ppcbin:='ppcxtensa';
      processorname:='xtensa';
 {$endif xtensa}
+{$ifdef wasm32}
+     ppcbin:='ppcwasm32';
+     processorname:='wasm32';
+{$endif wasm32}
      versionstr:='';                      { Default is just the name }
      if ParamCount = 0 then
        begin
@@ -271,6 +275,8 @@ program fpc;
                              cpusuffix:='xtensa'
                            else if processorstr='z80' then
                              cpusuffix:='z80'
+                           else if processorstr='wasm32' then
+                             cpusuffix:='wasm32'
                            else
                              error('Illegal processor type "'+processorstr+'"');