[Top][All Lists]

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

Re: [Qemu-devel] [PATCH v2 1/1] include: Auto-generate the sizes lookup

From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH v2 1/1] include: Auto-generate the sizes lookup table
Date: Thu, 10 Jan 2019 13:40:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Leonid Bloch <address@hidden> writes:

> Hi,
> On 1/8/19 11:31 AM, Markus Armbruster wrote:
>> I'd leave it hard-coded.  Replacing a few trivial defines by an arguably
>> less trivial script doesn't feel like an improvement.  In this case, it
>> doesn't even save lines.
> As I've said, I'm fine with that. The autogeneration sounds the right 
> thing to do here, as the table is autogenertaed anyway, but indeed it is 
> already there, explained, and even the script for generating it appears 
> in the comments for reproducibility.
>> I'm not sure I'd use shell for this, but since you already wrote it and
>> it works...
> If you've noticed, the original script was in AWK. But to be as generic 
> as possible, I didn't write the generation script in AWK because even 
> AWK is not guaranteed to be installed on the build system. The only 
> interpreted language that is guaranteed to be there is shell (most basic 
> shell) because .configure itself needs it.


    $ grep -w awk configure 
        maj=`libgcrypt-config --version | awk -F . '{print $1}'`
        min=`libgcrypt-config --version | awk -F . '{print $2}'`

The build also requires Python.


reply via email to

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