From: Christophe R. <cs...@ca...> - 2006-05-10 08:29:43
|
"Marko Koci=E6" <mar...@gm...> writes: > Thanks, I already built sbcl with your patch and it works as before > (so far). I didn't mess with base-target-features.lisp-expr. > > Instead I used > (pushnew :x86-two-arg-passing-regs *features*) > (pushnew :x86-reserve-ebx *features*) The *features* list of the host lisp has essentially no effect on the compilation of the target lisp: that's one of the points of the carefully-written build procedure, and it is what allows SBCL to build from lisps which are not SBCL just as well as it does from SBCL itself. > Is that enough or I should add those features in > base-target-features.lisp-expr before building? For this reason, pushing keywords onto the host's *features* has no effect on the target's attributes; instead, you need to get those keywords onto the list which will be the target's *features*. The documented (yes, really!) way of doing this is to create a customize-target-features.lisp file in the main sbcl source directory, containing a function which, well, customizes the target's features (taking a list as argument and returning a list). You will find examples of such functions in the documentation, too. Editing base-target-features.lisp-expr will work, but interact badly with cvs, in that other developers are not typically interested in one person's local customization. Cheers, Christophe |