bug-make
[Top][All Lists]
Advanced

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

[bug #65596] Test for let function not available in .FEATURES


From: Jouke Witteveen
Subject: [bug #65596] Test for let function not available in .FEATURES
Date: Tue, 16 Apr 2024 17:03:09 -0400 (EDT)

Follow-up Comment #1, bug #65596 (group make):

You're right. I guess it's too late to fix that now, since it will not be
fixed in all releases that have the "let" function.

You can test for its presence with the following construct:

$(filter builtin,$(foreach let,unavailable,$(call let,,,builtin)))

This will expand to "builtin" if there is a built-in "let" function and to the
empty string otherwise. Without the outermost "filter", it would expand to
"unavailable" when there is no built-in "let" function.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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