本文整理汇总了Python中pypy.translator.c.genc.CStandaloneBuilder.build_database方法的典型用法代码示例。如果您正苦于以下问题:Python CStandaloneBuilder.build_database方法的具体用法?Python CStandaloneBuilder.build_database怎么用?Python CStandaloneBuilder.build_database使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pypy.translator.c.genc.CStandaloneBuilder
的用法示例。
在下文中一共展示了CStandaloneBuilder.build_database方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: task_database_c
# 需要导入模块: from pypy.translator.c.genc import CStandaloneBuilder [as 别名]
# 或者: from pypy.translator.c.genc.CStandaloneBuilder import build_database [as 别名]
def task_database_c(self):
translator = self.translator
if translator.annotator is not None:
translator.frozen = True
if self.libdef is not None:
cbuilder = self.libdef.getcbuilder(self.translator, self.config)
self.standalone = False
standalone = False
else:
standalone = self.standalone
if standalone:
from pypy.translator.c.genc import CStandaloneBuilder as CBuilder
else:
from pypy.translator.c.genc import CExtModuleBuilder as CBuilder
cbuilder = CBuilder(self.translator, self.entry_point,
config=self.config)
cbuilder.stackless = self.config.translation.stackless
if not standalone: # xxx more messy
cbuilder.modulename = self.extmod_name
database = cbuilder.build_database()
self.log.info("database for generating C source was created")
self.cbuilder = cbuilder
self.database = database