chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Always regenerate import libraries in setup-mo


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] Always regenerate import libraries in setup-mode
Date: Mon, 1 Apr 2019 19:48:08 +1300

Hi all,

Here's a patch that addresses a bad interaction between chicken-do and
the code in core.scm that avoids regenerating import libraries when they
haven't changed. Basically, by skipping the import library, target files
can become stuck as "out of date" and that further invocations of
chicken-install will always rebuild them.

For example:

    chicken-install -r regex
    cd ~/.cache/chicken-install/regex
    chicken-install -n                 # everything is built
    touch regex.scm
    chicken-install -n                 # so is built (as well as static.o)
    chicken-install -n                 # so is built
    chicken-install -n                 # so is built
    # and so on ...

This patch is a very simple solution to the problem, but it's not the
only way we could address the issue so if someone wants to propose
something more clever please be my guest.

Cheers,

Evan

Attachment: 0001-Always-regenerate-import-libraries-in-setup-mode.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]