MCPcopy Create free account
hub / github.com/boostorg/build / gcc_compile_c

Function gcc_compile_c

v2/tools/gcc.py:346–355  ·  view source on GitHub ↗
(targets, sources, properties)

Source from the content-addressed store, hash-verified

344 engine.add_dependency(targets, bjam.call('get-target-variable', targets, 'PCH_FILE'))
345
346def 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
357engine.register_action(
358 'gcc.compile.c++',

Callers

nothing calls this directly

Calls 2

get_managerFunction · 0.90
engineMethod · 0.80

Tested by

no test coverage detected