浏览代码

- disallow enabling regvars for WebAssembly, because it's not supported, yet

Nikolay Nikolov 11 月之前
父节点
当前提交
7ce2f95db0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/dirparse.pas

+ 2 - 2
compiler/dirparse.pas

@@ -143,10 +143,10 @@ implementation
             end;
           if found then
             begin
-{$ifdef llvm}
+{$if defined(llvm) or defined(wasm32)}
              { -Ooregvar is not supported, llvm will take care of that }
              if opt<>cs_opt_regvar then
-{$endif llvm}
+{$endif}
               if doset then
                 include(a,opt)
               else