Bug 109325 - mesa: Need ability to retrieve command line of Meson configuration
Summary: mesa: Need ability to retrieve command line of Meson configuration
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Dylan Baker
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: mesa-autotools-removal
  Show dependency treegraph
 
Reported: 2019-01-11 22:30 UTC by Matt Turner
Modified: 2019-01-31 16:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matt Turner 2019-01-11 22:30:05 UTC
Similar to how the configuration command line is saved in autotools' config.log, there needs to be a way to retrieve this information from Meson.

Dylan is working on this with the upstream Meson project and has plans for a stop-gap solution as well.
Comment 1 Eric Engestrom 2019-01-31 16:16:03 UTC
There is an open issue upstream for a better solution:

https://github.com/mesonbuild/meson/issues/4637

But in the mean time, Dylan wrote a script that does it for us.

commit 4a131a13303773d8b0e4d47e917b9c52d439146a (fdo/mr/106)
Author: Dylan Baker <dylan@pnwbakers.com>
Date:   Fri Jan 11 15:36:05 2019 -0800

    meson: Add a script to extract the cmd line used for meson
    
    Upstream I'm persuing a more comprehensive solution, but this should
    prove a suitable stop-gap measure in the meantime.

The script is bin/meson-cmd-extract.py and you simply pass it the build directory, and it prints all the options back.

Marking this bug as fixed, as we have a solution for Mesa.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.