If C file already exists do not run chibi-ffi

This commit is contained in:
retropikzel 2025-06-20 13:08:33 +03:00
parent bf5f127821
commit 3142fc2fdc

View file

@ -2057,7 +2057,8 @@
,@(if local-test? '("-Iinclude" "-L.") '()) ,@(if local-test? '("-Iinclude" "-L.") '())
"-o" ,so-file ,c-file "-lchibi-scheme" "-o" ,so-file ,c-file "-lchibi-scheme"
,@lib-flags))) ,@lib-flags)))
(when (or (and (file-exists? stub-file) (when (or (and (not (file-exists? c-file))
(file-exists? stub-file)
(or (system? ffi-cmd) (or (system? ffi-cmd)
(yes-or-no? cfg "couldn't compile stub: " (yes-or-no? cfg "couldn't compile stub: "
stub-file " - install anyway?"))) stub-file " - install anyway?")))