[pypy-svn] r26547 - in pypy/dist/pypy/translator: . goal
nik at codespeak.net
nik at codespeak.net
Sat Apr 29 04:51:37 CEST 2006
Author: nik
Date: Sat Apr 29 04:51:32 2006
New Revision: 26547
Modified:
pypy/dist/pypy/translator/driver.py
pypy/dist/pypy/translator/goal/translate.py
Log:
enable squeak translations of standalone targets.
Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py (original)
+++ pypy/dist/pypy/translator/driver.py Sat Apr 29 04:51:32 2006
@@ -375,6 +375,24 @@
task_run_cl = taskdef(task_run_cl, ['compile_cl'],
'XXX')
+ def task_source_squeak(self):
+ from pypy.translator.squeak.gensqueak import GenSqueak
+ self.gen = GenCL(dir, self.translator)
+ filename = self.gen.gen()
+ self.log.info("Wrote %s" % (filename,))
+ task_source_squeak = taskdef(task_source_squeak, ['ootype'],
+ 'Generating Squeak source')
+
+ def task_compile_squeak(self):
+ pass
+ task_compile_squeak = taskdef(task_compile_squeak, ['source_squeak'],
+ 'XXX')
+
+ def task_run_squeak(self):
+ pass
+ task_run_squeak = taskdef(task_run_squeak, ['compile_squeak'],
+ 'XXX')
+
def proceed(self, goals):
if not goals:
if self.default_goal:
Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py (original)
+++ pypy/dist/pypy/translator/goal/translate.py Sat Apr 29 04:51:32 2006
@@ -46,7 +46,7 @@
'0_source': [OPT(('-s', '--source'), "Generate source code", GOAL),
OPT(('--no-source',), "Don't generate source code", SKIP_GOAL)],
- '1_backend': [OPT(('-b', '--backend'), "Backend", ['c', 'llvm', 'cl'])],
+ '1_backend': [OPT(('-b', '--backend'), "Backend", ['c', 'llvm', 'cl', 'squeak'])],
'2_gc': [OPT(('--gc',), "Garbage collector", ['boehm', 'ref', 'framework', 'none'])],
'3_stackless': [OPT(('--stackless',), "Stackless code generation", True)],
More information about the Pypy-commit
mailing list