diff options
| author | ruki <[email protected]> | 2025-01-06 18:12:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-01-06 18:12:10 +0800 |
| commit | 540d496f5021b6d764c741e5fbcedd9c6f60030d (patch) | |
| tree | 7414113b4bb32ec6534c62d4448aa090651c9ea7 | |
| parent | c5e0e80a0e2311308bbfc9e406bfb312af52f23e (diff) | |
| parent | 6ae2785c8ecc9aef20386e7832e8e117dd483f36 (diff) | |
Merge pull request #6045 from xmake-io/includes
fix includes
| -rw-r--r-- | xmake/core/base/interpreter.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index f23e064cf..71250be6d 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -1717,10 +1717,7 @@ function interpreter:api_builtin_includes(...) files = os.files(subpath) else -- @see https://github.com/xmake-io/xmake/issues/6026 - local file = path.join(subpath, path.filename(curfile)) - if os.isfile(file) then - files = {file} - end + files = os.files(path.join(subpath, path.filename(curfile))) end if files and #files > 0 then table.join2(subpaths_matched, files) |
