Author: William ML Leslie <william.leslie....@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']
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to