Open mundusnine opened 1 year ago
This treats just like , doesn't it? That's not correct - should match multiple directories and shouldn't. And what is that block doing that's trying to do something specifically with C-files? The matching-algo shouldn't do anything specific to particular file-types.
This treats just like , doesn't it? That's not correct - should match multiple directories and shouldn't. And what is that block doing that's trying to do something specifically with C-files? The matching-algo shouldn't do anything specific to particular file-types.
This code actually checks what folders to look in when current is undefined: https://github.com/Kode/kmake/blob/2b4b5a56a2424f0d8b402536d2282088d05445f4/kmake/src/Project.ts#L500C3-L527C4
What seems to happen is when an absolutePath is passed that ends with .c,/.h etc or * right now it doesn't take that into consideration and doesn't searchFiles in that directory. This doesn't do the same logic as for it only says search in the parent directory for includes ending with `and
`. Same thing for .h/.c/etc.
case 1:
case 2: