[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: issue with meson and recursion: negation missing in add?
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: issue with meson and recursion: negation missing in add? |
Date: |
Mon, 1 Mar 2021 09:10:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 2/27/21 11:23 PM, Claudio Fontana wrote:
> Hi Paolo,
>
> I don't know how to handle an issue in the current way we are using meson
> with recursion, ie always recursing,
> and testing multiple options inside the recursed directory.
>
> In the case of ARM, we have:
>
> target/arm/tcg/meson.build,
>
> where I need to check all the time for TCG, given our current standard of
> always recursing.
>
> Besides being error-prone to always remember to check for CONFIG_TCG,
>
> how do I add some object conditionally on whether CONFIG_TCG is true, but
> TARGET_AARCH64 is false?
>
> I'd need something like:
>
> arm_ss.add(when: [!TARGET_AARCH64,'CONFIG_TCG'], if_true: files(
> 'tcg-cpu-models.c',
> ))
>
> but the negation !TARGET_AARCH64 is a syntax error... is there any way to
> negate the condition?
Funny, I asked Paolo the same question last week on IRC, but:
- I also included TARGET_SIZE in the when:
- your email is clearer than my questions :)
>
> Also as we nest directories more and more, it seems to me that this becomes
> more and more confusing.
>
> How about dropping the idea to recurse always unconditionally?
>
> Thanks!
>
> Claudio
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: issue with meson and recursion: negation missing in add?,
Philippe Mathieu-Daudé <=