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

Function gcc_compile_cpp

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

Source from the content-addressed store, hash-verified

334
335
336def 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
346def gcc_compile_c(targets, sources, properties):
347 engine = get_manager().engine()

Callers

nothing calls this directly

Calls 2

get_managerFunction · 0.90
engineMethod · 0.80

Tested by

no test coverage detected