Boost logo

Boost-Build :

Subject: [Boost-build] Mutiple ASM scanners
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2013-02-25 17:31:46


I have a working scanner setup for one of our custom compiler toolchains. I am now trying to add a scanner for ASM files for another toolchain. Apparently the scanners are global per type and so it is not obvious to me how to add a second scanner for the same type but another toolchain. I tried making new ASM types, one per toolchain but then the build does not find a generator for .s files to .o file:

class asm-scanner : common-scanner
{
    rule pattern ( )
    {
    return "\.import[ ]*\"(.*)\"[ ]*;" ;
    }
}

scanner.register asm-scanner : include ;

type.set-scanner ADI_ASM : asm-scanner ;

generators.register-c-compiler adi.compile.asm : ADI_ASM : OBJ : <toolset>adi ;

Any suggestions?

Also, if I declare this class in two different toolchain files, bjam crashes:

class asm-scanner : common-scanner
{
    rule pattern ( )
    {
    return "\.import[ ]*\"(.*)\"[ ]*;" ;
    }
}

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Thanks

Chris

________________________________

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk