[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: does make -p dump variables in the right order?
From: |
Paul Smith |
Subject: |
Re: does make -p dump variables in the right order? |
Date: |
Wed, 3 Mar 2010 12:27:31 -0500 |
On Wed, 2010-03-03 at 11:59 -0500, Adam Kellas wrote:
> I'd like to think that "make -q -p" would print out variables in the
> "correct" order, such that one can reliably infer from its output a
> variable's value at a given point based on the rules for recursive and
> simple expansions, but I don't see this explicitly stated in the
> manual. Can we rely on it?
In fact the output explicitly does NOT show in any particular order.
Variables are stored internally to make in a hash table, and the -p flag
dumps the contents by walking the hash table. So, the values are
printed in essentially random order.