Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ if get_option('debug')
language: 'c',
)
endif
if get_option('disable_parser')
add_project_arguments(
['-DQJS_DISABLE_PARSER'],
language: 'c',
)
endif

qjs_sys_deps = []

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ option('examples', type: 'feature', description: 'build examples')
option('libc', type: 'boolean', value: false, description: 'build qjs standard library modules as part of the library')
option('cli_mimalloc', type: 'feature', value: 'disabled', description: 'build qjs cli with mimalloc')
option('docdir', type: 'string', description: 'documentation directory')
option('disable_parser', type: 'boolean', value: false, description: 'Disable JS source code parser')