[pypy-commit] pypy default: hg merge
mjacob
noreply at buildbot.pypy.org
Sun Nov 22 07:23:17 EST 2015
Author: Manuel Jacob <me at manueljacob.de>
Branch:
Changeset: r80832:2bd0965ba1ae
Date: 2015-11-22 13:23 +0100
http://bitbucket.org/pypy/pypy/changeset/2bd0965ba1ae/
Log: hg merge
diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -302,7 +302,7 @@
def hack_for_cffi_modules(self, driver):
# HACKHACKHACK
- # ugly hack to modify target goal from compile_c to build_cffi_imports
+ # ugly hack to modify target goal from compile_* to build_cffi_imports
# this should probably get cleaned up and merged with driver.create_exe
from rpython.translator.driver import taskdef
import types
@@ -316,7 +316,8 @@
name = name.new(ext='exe')
return name
- @taskdef(['compile_c'], "Create cffi bindings for modules")
+ compile_goal, = driver.backend_select_goals(['compile'])
+ @taskdef([compile_goal], "Create cffi bindings for modules")
def task_build_cffi_imports(self):
from pypy.tool.build_cffi_imports import create_cffi_import_libraries
''' Use cffi to compile cffi interfaces to modules'''
@@ -335,7 +336,7 @@
# if failures, they were already printed
print >> sys.stderr, str(exename),'successfully built, but errors while building the above modules will be ignored'
driver.task_build_cffi_imports = types.MethodType(task_build_cffi_imports, driver)
- driver.tasks['build_cffi_imports'] = driver.task_build_cffi_imports, ['compile_c']
+ driver.tasks['build_cffi_imports'] = driver.task_build_cffi_imports, [compile_goal]
driver.default_goal = 'build_cffi_imports'
# HACKHACKHACK end
More information about the pypy-commit
mailing list