Browse Source

* Invoke testing on linux requires libffi

Michaël Van Canneyt 1 year ago
parent
commit
18cf928ed6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/rtl-objpas/tests/testrunner.rtlobjpas.pp

+ 5 - 1
packages/rtl-objpas/tests/testrunner.rtlobjpas.pp

@@ -4,8 +4,12 @@
 program testrunner.rtlobjpas;
 
 {$mode objfpc}{$H+}
+
 { Invoke needs a function call manager }
-{.$define useffi}
+{$ifdef linux}
+{$define useffi}
+{$endif}
+
 {$if defined(CPUX64) and defined(WINDOWS)}
 {$define testinvoke}
 {$define testimpl}