Improve single-source generation (#2989)
Detected and fixed minor issues with the single-source generation: * On Windows the line info generation now correctly escapes the path separators. * Fixed an incorrect C file include order. Now the global object C file is force included to get all common headers at the start in the generated source file. * Added a missing colon which fixed the correct removal of the config.h include. * Fix the command line help. * Small typo fix. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Robert Fancsik
parent
6744376bbe
commit
3e12738037
@@ -48,6 +48,9 @@ def generate_jerry_core(output_dir, verbose=False):
|
||||
'--input={}/api/jerry.c'.format(JERRY_CORE),
|
||||
'--output={}/jerryscript.c'.format(output_dir),
|
||||
'--append-c-files',
|
||||
# Add the global built-in by default to include some common items
|
||||
# to avoid problems with common built-in headers
|
||||
'--input={}/ecma/builtin-objects/ecma-builtins.c'.format(JERRY_CORE),
|
||||
'--remove-include=jerryscript.h',
|
||||
'--remove-include=jerryscript-port.h',
|
||||
'--remove-include=jerryscript-compiler.h',
|
||||
@@ -55,7 +58,7 @@ def generate_jerry_core(output_dir, verbose=False):
|
||||
'--remove-include=jerryscript-debugger.h',
|
||||
'--remove-include=jerryscript-debugger-transport.h',
|
||||
'--remove-include=jerryscript-port.h',
|
||||
'--remove-include=jerryscript-snapshot.h'
|
||||
'--remove-include=jerryscript-snapshot.h',
|
||||
'--remove-include=config.h',
|
||||
'--push-include=jerryscript.h',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user