diff --git a/compiler/dirparse.pas b/compiler/dirparse.pas index 4f1a0952ce..7eecfae72d 100644 --- a/compiler/dirparse.pas +++ b/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