[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #9060] --warn-undefined-variables
From: |
Paul D. Smith |
Subject: |
[bug #9060] --warn-undefined-variables |
Date: |
Sun, 14 Sep 2014 13:39:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36 |
Follow-up Comment #4, bug #9060 (project make):
The way make currently works is that MAKEFLAGS is re-parsed only after all the
makefiles have been read in and before make is about to start running recipes.
MAKEFLAGS is not reparsed immediately every time it's changes. This leads to
the behavior you're seeing, since undefined variables used during parsing
won't be flagged.
I don't know if it's so simple to simply have some special code that looks for
setting the MAKEFLAGS variable and does a re-parse every time; I'm not sure
all the flags in MAKEFLAGS are idempotent so parsing them multiple times might
lead to problems. This would need to be checked carefully.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?9060>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/