Explorar o código

* Invoke testing on linux requires libffi

Michaël Van Canneyt hai 1 ano
pai
achega
18cf928ed6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;
 program testrunner.rtlobjpas;
 
 
 {$mode objfpc}{$H+}
 {$mode objfpc}{$H+}
+
 { Invoke needs a function call manager }
 { Invoke needs a function call manager }
-{.$define useffi}
+{$ifdef linux}
+{$define useffi}
+{$endif}
+
 {$if defined(CPUX64) and defined(WINDOWS)}
 {$if defined(CPUX64) and defined(WINDOWS)}
 {$define testinvoke}
 {$define testinvoke}
 {$define testimpl}
 {$define testimpl}