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