Ticket #4111: mc.jam.patch

File mc.jam.patch, 858 bytes (added by Andrey Semashev, 13 years ago)

A patch to enable mc-compiler feature.

  • mc.jam

     
    1717import type ;
    1818import rc ;
    1919
     20feature.feature mc-compiler : mc windmc : propagated ;
     21feature.set-default mc-compiler : mc ;
     22
    2023rule init ( )
    2124{
    2225}
     
    3639flags mc.compile MCFLAGS <mc-set-customer-bit>no : ;
    3740flags mc.compile MCFLAGS <mc-set-customer-bit>yes : -c ;
    3841
    39 generators.register-standard mc.compile : MC : H RC ;
     42generators.register-standard mc.compile.mc : MC : H RC : <mc-compiler>mc ;
     43generators.register-standard mc.compile.windmc : MC : H RC : <mc-compiler>windmc ;
    4044
    41 actions compile
     45actions compile.mc
    4246{
    4347    mc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)"
    4448}
     49
     50actions compile.windmc
     51{
     52    windmc $(MCFLAGS) -h "$(<[1]:DW)" -r "$(<[2]:DW)" "$(>:W)"
     53}