[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 8/8] configure: automatically parse command line for meson -D

From: Paolo Bonzini
Subject: Re: [PATCH 8/8] configure: automatically parse command line for meson -D options
Date: Sat, 23 Jan 2021 19:00:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 23/01/21 04:30, 罗勇刚(Yonggang Luo) wrote:
> We could and I did it in the first version. However it's ugly that the user has to use --python on some setups in order to get a full help message.

  Yeap, but finally configure should gone, so I think --python are acceptable by user, just need make sure to be noticed when the default python
are not python3

When configure will be gone, these 200 lines of Perl will disappear with it, so we don't have to think for future users and developers, but for the present.

I don't expect configure or Makefile to go away completely, because for example things such as "git submodule" handling are easier to do in the shell. However, we also need to evaluate what's the road to a minimal configure (just like our Makefile is pretty minimal, only tests/tcg still has lots of build logic). In that respect, automatic parsing command line simplifies moving things from configure to meson, and that is true no matter what language the parser is written in.

(BTW, I'm not such a Perl fan. I have only ever written like 3 or 4 programs in Perl).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]