bug-make
[Top][All Lists]
Advanced

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

[bug #63439] [Regression] --no-builtin-variables with --warn-undefined-v


From: malcolm cook
Subject: [bug #63439] [Regression] --no-builtin-variables with --warn-undefined-variables trigger warning on GNUMAKEFLAGS
Date: Wed, 30 Nov 2022 17:15:06 -0500 (EST)

Follow-up Comment #4, bug #63439 (project make):

I perhaps was over-eager to chalk up my observation as being the same
underlying issue.  I still think there is a regression, but I certainly
misreported it.  Try this:


/tmp$ make -f- <<<$'MAKEFLAGS += --warn-undefined-variables \n $(info
MAKE_VERSION: ${MAKE_VERSION}  MAKECMDGOALS: ${MAKECMDGOALS})'
/tmp/GmuYbgmA:2: warning: undefined variable 'MAKECMDGOALS'
MAKE_VERSION: 4.4  MAKECMDGOALS: 
make: *** No targets.  Stop.

/tmp$ make4.3 -f- <<<$'MAKEFLAGS += --warn-undefined-variables \n $(info
MAKE_VERSION: ${MAKE_VERSION}  MAKECMDGOALS: ${MAKECMDGOALS})'
MAKE_VERSION: 4.3  MAKECMDGOALS: 
make: *** No targets.  Stop.


Exactly how this difference comes to pass is beyond my ken, but there it is...
in 4.3 the variable is empty whereas in 4.4 it is undefined.

There certainly is an easy workaround, but for some few cases, it is a
significant difference.  Alas, mine was one of them.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63439>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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