Boost logo

Boost-Build :

Subject: Re: [Boost-build] selecting the assembler
From: Bruno Santos (bsantos_at_[hidden])
Date: 2012-03-05 12:44:36

Of the top of my head you have two options:

1- Use the *make* rule:

make target : source : @masm ;

actions masm
        masm "$(>)" -o "$(<)"

2 - override the toolset:

import generators;

generators.override this-module.compile.asm : gcc.compile.asm ;

actions compile.asm
        masm "$(>)" -o "$(<)"

On 05/03/2012, at 08:57, Oliver Kowalke wrote:

> Hello,
> I've the requirement to overwrite which assembler tool is used on a platform.
> In the case of mingw GAS is used on Windows. Unfortunately GAS does not come with special macros for generating the exception handler (especially on WIn64) like MASM.
> It would make life easier if I could specify that should use MASM in order to compile a specific assembler file. The functions are declared as 'extern C' and implement cdecl call-convetion so that it is save to link the object file of the assembler together with the object files generated by mingw.
> Would it be possible that will support it?
> Oliver
> _______________________________________________
> Unsubscribe & other changes:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at