diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 15:05:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-23 15:05:20 -0700 |
commit | 6241ed9520f3723f085766691d45feeab607b76a (patch) | |
tree | de6f36607594fa9a256602cab9ea58f982182201 /tools/shared.py | |
parent | 23b2a7903505c69f0252fa891c8fc7cac08a58bc (diff) |
rewrite eliminator in js
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/shared.py b/tools/shared.py index 37552b09..84ce6c2e 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -205,7 +205,7 @@ EMMAKEN = path_from_root('tools', 'emmaken.py') AUTODEBUGGER = path_from_root('tools', 'autodebugger.py') BINDINGS_GENERATOR = path_from_root('tools', 'bindings_generator.py') EXEC_LLVM = path_from_root('tools', 'exec_llvm.py') -VARIABLE_ELIMINATOR = path_from_root('tools', 'eliminator', 'eliminator.coffee') +VARIABLE_ELIMINATOR = path_from_root('tools', 'eliminator.js') JS_OPTIMIZER = path_from_root('tools', 'js-optimizer.js') FILE_PACKAGER = path_from_root('tools', 'file_packager.py') @@ -993,10 +993,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e ret = Building.splitter(filename, addendum='.el.js', func=Building.eliminator) if ret: return ret - coffee = path_from_root('tools', 'eliminator', 'node_modules', 'coffee-script', 'bin', 'coffee') - eliminator = path_from_root('tools', 'eliminator', 'eliminator.coffee') input = open(filename, 'r').read() - output = Popen([NODE_JS, coffee, eliminator, filename], stdout=PIPE).communicate()[0] + output = Popen([NODE_JS, VARIABLE_ELIMINATOR, filename], stdout=PIPE).communicate()[0] assert len(output) > 0, 'Error in eliminator: ' + output filename += '.el.js' f = open(filename, 'w') |