docs: add meson option to use the unsafe loader

pull/11777/head
Eli Schwartz 2 years ago
parent 9de07ff4d7
commit 740d926eee
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 3
      docs/meson.build
  2. 2
      docs/meson_options.txt

@ -17,6 +17,7 @@ docs_gen = custom_target(
sitemap = files('sitemap.txt')
yaml_loader = get_option('unsafe_yaml') ? 'fastyaml' : 'yaml'
genrefman = find_program('./genrefman.py')
refman_binary = custom_target(
'gen_refman_bin',
@ -25,7 +26,7 @@ refman_binary = custom_target(
depfile: 'reman_dep.d',
command: [
genrefman,
'-l', 'yaml',
'-l', yaml_loader,
'-g', 'pickle',
'-o', '@OUTPUT@',
'--depfile', '@DEPFILE@',

@ -0,0 +1,2 @@
option('unsafe_yaml', type: 'boolean', value: false,
description: 'disable safety checks and use a faster, but less correct YAML loader')
Loading…
Cancel
Save