chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] How do you compile multiple modules into a single ex


From: Evan Hanson
Subject: Re: [Chicken-users] How do you compile multiple modules into a single executable?
Date: Sun, 20 Dec 2015 15:34:33 +1300

The `compiling` feature specifier is only expanded when compiling, so
something like `(cond-expand (compiling (import foo)) (else (use foo)))`
ought to work.

To be totally honest, in this specific situation you can actually get away
with using just `(use foo)` since the "-uses foo" flag tells csc that foo
is a unit and doesn't need to be loaded at runtime either way, but to avoid
confusion I think it's best to use the right form for the situation.

Hope that helps,

Evan



reply via email to

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