Wrap CCompiler.compile()
(self, sources, flags, ccompiler=None, **kwargs)
| 604 | self._ccompiler = ccompiler |
| 605 | |
| 606 | def dist_compile(self, sources, flags, ccompiler=None, **kwargs): |
| 607 | """Wrap CCompiler.compile()""" |
| 608 | assert(isinstance(sources, list)) |
| 609 | assert(isinstance(flags, list)) |
| 610 | flags = kwargs.pop("extra_postargs", []) + flags |
| 611 | if not ccompiler: |
| 612 | ccompiler = self._ccompiler |
| 613 | |
| 614 | return ccompiler.compile(sources, extra_postargs=flags, **kwargs) |
| 615 | |
| 616 | def dist_test(self, source, flags, macros=[]): |
| 617 | """Return True if 'CCompiler.compile()' able to compile |
no test coverage detected