Skip to content

Commit

Permalink
Convert named options to corresponding -D options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Aug 7, 2024
1 parent 13ab6b8 commit 43b2a7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesonbuild/mconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,10 @@ def run_impl(options: CMDOptions, builddir: str) -> int:
U = options.U
else:
U = []
save |= c.coredata.optstore.set_from_configure_command(options.projectoptions, A, U)
all_D = options.projectoptions[:]
for keystr, valstr in options.cmd_line_options.items():
all_D.append(f'{keystr}={valstr}')
save |= c.coredata.optstore.set_from_configure_command(all_D, A, U)
coredata.update_cmd_line_file(builddir, options)
if options.clearcache:
c.clear_cache()
Expand Down

0 comments on commit 43b2a7b

Please sign in to comment.