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

Method run

v2/tools/gcc.py:387–420  ·  view source on GitHub ↗
(self, project, name, ps, sources)

Source from the content-addressed store, hash-verified

385 gcc/libc.
386 """
387 def run(self, project, name, ps, sources):
388 # TODO: Replace this with the use of a target-os property.
389
390 no_static_link = False
391 if bjam.variable('UNIX'):
392 no_static_link = True;
393 ##FIXME: what does this mean?
394## {
395## switch [ modules.peek : JAMUNAME ]
396## {
397## case * : no-static-link = true ;
398## }
399## }
400
401 reason = None
402 if no_static_link and ps.get('runtime-link') == 'static':
403 if ps.get('link') == 'shared':
404 reason = "On gcc, DLL can't be build with '<runtime-link>static'."
405 elif type.is_derived(self.target_types[0], 'EXE'):
406 for s in sources:
407 source_type = s.type()
408 if source_type and type.is_derived(source_type, 'SHARED_LIB'):
409 reason = "On gcc, using DLLS together with the " +\
410 "<runtime-link>static options is not possible "
411 if reason:
412 print 'warning:', reason
413 print 'warning:',\
414 "It is suggested to use '<runtime-link>static' together",\
415 "with '<link>static'." ;
416 return
417 else:
418 generated_targets = unix.UnixLinkingGenerator.run(self, project,
419 name, ps, sources)
420 return generated_targets
421
422if on_windows():
423 flags('gcc.link.dll', '.IMPLIB-COMMAND', [], ['-Wl,--out-implib,'])

Callers 1

run_pchMethod · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected