Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212587

equals in MakeBase does not handle empty strings correctly

XMLWordPrintable

    • b17

      The macro equals in MakeBase.gmk does not handle empty strings correctly. Comparing two empty strings returns as non-equal, even though they should be equal.

      This had the result that DependOnVariable caused eternal redoing of a target if the variable in question happened to be empty, since when the new empty value was compared to the old empty value, it was deemed different, and thus a remake of the target was initiated.

      The solution was tricky, even by Make syntax standards. I guarantee you, every single space in this construct must be the way it is. :-&

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: