(targets, sources, properties)
| 344 | engine.add_dependency(targets, bjam.call('get-target-variable', targets, 'PCH_FILE')) |
| 345 | |
| 346 | def gcc_compile_c(targets, sources, properties): |
| 347 | engine = get_manager().engine() |
| 348 | # If we use the name g++ then default file suffix -> language mapping does |
| 349 | # not work. So have to pass -x option. Maybe, we can work around this by |
| 350 | # allowing the user to specify both C and C++ compiler names. |
| 351 | #if $(>:S) != .c |
| 352 | #{ |
| 353 | engine.set_target_variable (targets, 'LANG', '-x c') |
| 354 | #} |
| 355 | engine.add_dependency(targets, bjam.call('get-target-variable', targets, 'PCH_FILE')) |
| 356 | |
| 357 | engine.register_action( |
| 358 | 'gcc.compile.c++', |
nothing calls this directly
no test coverage detected