1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 11:09:54 +00:00

Be more selective when testing FFI.

In the future, we really should get more FFI testing for
partially supported FFI on various platforms.
This commit is contained in:
Calvin Rose 2023-05-28 15:28:17 -05:00
parent ac5f118dac
commit 4aca94154f

View File

@ -28,7 +28,8 @@
(assert (= (thunk) 1) "delay 3")
(assert (= counter 1) "delay 4")
(def has-ffi (dyn 'ffi/native))
# We should get ARM support...
(def has-ffi (and (dyn 'ffi/native) (= (os/arch) :x64)))
# FFI check
(compwhen has-ffi