google / kati

An experimental GNU make clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error for comparing wildcard results

hooneygogo opened this issue · comments

Test case:
$ cat Android.mk
...
include $(LOCAL_PATH)/*/Android.mk

and suppose we have several sub-dirs which contain Android.mk file.
(e.g. a/Android.mk, b/Android.mk, c/Android.mk ... z/Android.mk)

Kati have been comparing a previous result of wildcard after sorted to a new result of wildcard without sorted. (https://github.com/google/kati/blob/master/regen.cc#L266)
The new result of wildcard should be also sorted before comparing with the previous one.

For now, kati dected "wildcard" results in the above cases as changed so always regenerate .ninja.

Fixed, I think.