Hi Robert,

On 2021-12-19 15:10, foggy wrote:
> I have my program split up using `(declare (unit ...))` and `(declare (uses
> ...))` (no includes), and compile the program by passing all the source
> files to csc. Is this the wrong way to go about splitting things up?

Based on the above, I *think* you can get chicken-install to do what you
want with something like the following. Your source files can probably
remain unchanged, too, as long as the units and filenames all match.

    ((component-options (linkage static))
     (components
      (extension a (modules) (source "src/a.scm"))
      (extension b (modules) (source "src/b.scm"))
      (program example (component-dependencies a b))))

The "static" linkage flag tells it to compile via object files and the
empty "modules" form tells it you're not using modules in those files.
Maybe give that a try for a start?

Cheers,

Evan

Reply via email to