def build_extensions(self):
#c = self.compiler.compiler_type
#print "compiler attr", self.compiler.__dict__
#print "compiler", self.compiler.compiler
#print "compiler is",c
try:
if compiler_is_clang(self.compiler.compiler):
for e in self.extensions:
e.extra_compile_args.append('-stdlib=libstdc++')
e.extra_compile_args.append('-Wno-unused-function')
for e in self.extensions:
e.extra_link_args.append('-stdlib=libstdc++')
except AttributeError:
pass
build_ext.build_extensions(self)
评论列表
文章目录