Skip to content

Commit f4bfcb0

Browse files
Gottoxsaghul
authored andcommitted
add support for parserless builds in meson
1 parent 43aa10b commit f4bfcb0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

meson.build

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ if get_option('debug')
122122
language: 'c',
123123
)
124124
endif
125+
if get_option('disable_parser')
126+
add_project_arguments(
127+
['-DQJS_DISABLE_PARSER'],
128+
language: 'c',
129+
)
130+
endif
125131

126132
qjs_sys_deps = []
127133

meson_options.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ option('examples', type: 'feature', description: 'build examples')
33
option('libc', type: 'boolean', value: false, description: 'build qjs standard library modules as part of the library')
44
option('cli_mimalloc', type: 'feature', value: 'disabled', description: 'build qjs cli with mimalloc')
55
option('docdir', type: 'string', description: 'documentation directory')
6+
option('disable_parser', type: 'boolean', value: false, description: 'Disable JS source code parser')

0 commit comments

Comments
 (0)