★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/a5c386d1baNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files

tools: add option to use custom template with js2c.py

PR-URL: #21187
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
codebytere authored and targos committed Jun 7, 2018
1 parent e92b89a commit a5c386d1bac9cdd86372ffc02c16286ab721ada8
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/js2c.py
@@ -330,6 +330,10 @@ def JS2C(source, target):
def main():
natives = sys.argv[1]
source_files = sys.argv[2:]
if source_files[-2] == '-t':
global TEMPLATE
TEMPLATE = source_files[-1]
source_files = source_files[:-2]
JS2C(source_files, [natives])

if __name__ == "__main__":

0 comments on commit a5c386d

Please sign in to comment.
You can’t perform that action at this time.