This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Implement DJ's observation on $(WERROR)
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: dj at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Mar 2003 19:19:27 -0600 (CST)
- Subject: Re: PATCH: Implement DJ's observation on $(WERROR)
>> This appears to be a correct implementation of the suggestion and the
>> best I can see. For reasons that might be obvious to others (DJ? ;-),
>> it was not possible to put $(WERROR) directly into STRICT2_WARN.
>Perhaps it needs to go in STAGE2_FLAGS_TO_PASS, where STRICT_WARN is
>defined for stage2?
I had to put @WERROR@ in STRICT2_WARN not $(WERROR) since
WERROR is not defined except inline within STAGE2_FLAGS_TO_PASS.
What I'd be looking for is this: how do I quote $(WERROR) such
that it isn't expanded until use in the recursive make where
WERROR is properly defined for that particular stage?
If there is no such way to quote make variable expansion then
my current solution is the only way I see to make it work.
Loren