and/or defined unconditionally
Brought to you by:
jgrahamc
The sense of the "filter" in the definitions of __gmsl_have_or and __gmsl_have_and is inverted, such that the condition is always false.
This causes the and/or macros to be defined unconditionally.
This is confusing for 2 reasons:
redefine-builtin.make - GNUmakefile to demonstrate the issues.
redefine-buildin.out - Output from run of redefine-builtin.make.
__gmsl.patch - Patch to fix flag heuristics
Hmm.
So I made a simple Makefile that contains the following:
The output with GNU Make 3.81 (which has native and and or) is...
And with GNU Make 3.80 (which does not)...
So, in both cases the $(origin) is returning undefined making my definitions useless. So I think a totally different approach is needed. How about detecting like this?
Thoughts?
Or perhaps take a 'truth table' approach and do this:
Done