Skip to content

Commit

Permalink
Merge pull request #6045 from xmake-io/includes
Browse files Browse the repository at this point in the history
fix includes
  • Loading branch information
waruqi authored Jan 6, 2025
2 parents c5e0e80 + 6ae2785 commit 540d496
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xmake/core/base/interpreter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 540d496

Please sign in to comment.