|
Boost : |
Subject: Re: [boost] [context] Don't hard-code the assembler
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2014-04-02 02:18:06
2014-04-02 4:01 GMT+02:00 Steven Watanabe <watanabesj_at_[hidden]>:
> Okay. Here's what I can do:
>
> - define new types ASM_GAS, ans ASM_MASM which
> inherit from ASM. (It's also possible to
> switch on a feature, but I think different types
> is a more correct abstraction.)
> - define two new tools gas and masm which can
> be initialized like this and which override
> the default assembler for the corresponding types
>
> using gas : [command] ;
> using masm : [command] ;
>
> - in your Jamfile, specify the types of the asm files with
> [ cast make_i386_ms_pe_masm asm-masm : asm/make_i386_ms_pe_masm.asm ]
>
> At this point:
> - If the assembler provided by the toolset can handle
> the format, then everything should work. (As is
> the case now.)
> - If not, then it can be fixed by adding a line to
> user-config.jam or project-config.jam.
>
> It would also be possible for you to try to auto-configure
> the assembler, but I'm not sure that's a good idea, since
> it overrides the toolset which is supposed to be the
> primary means of compiling.
>
OK - thx, I'll try to add your suggestion (don't know if it will be
finished till the 1.56 release).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk