(targets, sources, properties)
| 334 | |
| 335 | |
| 336 | def gcc_compile_cpp(targets, sources, properties): |
| 337 | # Some extensions are compiled as C++ by default. For others, we need to |
| 338 | # pass -x c++. We could always pass -x c++ but distcc does not work with it. |
| 339 | extension = os.path.splitext (sources [0]) [1] |
| 340 | lang = '' |
| 341 | if not extension in ['.cc', '.cp', '.cxx', '.cpp', '.c++', '.C']: |
| 342 | lang = '-x c++' |
| 343 | get_manager().engine().set_target_variable (targets, 'LANG', lang) |
| 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() |
nothing calls this directly
no test coverage detected