[pypy-commit] pypy real-mode-translator-driver: Quit early if there is nothing to do
william_ml_leslie
pypy.commits at gmail.com
Tue Jan 24 05:46:23 EST 2017
Author: William ML Leslie <william.leslie.ttg at gmail.com>
Branch: real-mode-translator-driver
Changeset: r89725:6429b253dfd2
Date: 2017-01-24 21:45 +1100
http://bitbucket.org/pypy/pypy/changeset/6429b253dfd2/
Log: Quit early if there is nothing to do
diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -192,6 +192,9 @@
def _proceed_inner(self, goals):
backend, ts = self.get_backend_and_type_system()
goals = set(self.backend_select_goals(goals + self.extra_goals))
+ if not goals:
+ self.log('Nothing to do.')
+ raise Done(None)
if any(cgoal in goals
for bakgoal in ['database', 'source', 'compile']
More information about the pypy-commit
mailing list