(symbols_only=False)
| 210 | |
| 211 | @ToolchainProfiler.profile() |
| 212 | def compile_javascript(symbols_only=False): |
| 213 | # Save settings to a file to work around v8 issue 1579 |
| 214 | settings_json = json.dumps(settings.external_dict(), sort_keys=True, indent=2) |
| 215 | building.write_intermediate(settings_json, 'settings.json') |
| 216 | |
| 217 | # Call js compiler. Passing `-` here mean read the settings from stdin. |
| 218 | args = ['-'] |
| 219 | if symbols_only: |
| 220 | args += ['--symbols-only'] |
| 221 | return shared.run_js_tool(path_from_root('tools/compiler.mjs'), |
| 222 | args, input=settings_json, stdout=subprocess.PIPE) |
| 223 | |
| 224 | |
| 225 | def set_memory(static_bump): |
no test coverage detected