Skip to content

Commit

Permalink
update compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 2, 2024
1 parent ab1f346 commit 9408f46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compile/bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if not lm.notest then
local fs = require "bee.filesystem"
local rootdir = fs.path(lm.workdir) / ".."
for file in fs.pairs(rootdir / "test", "r") do
if file:equal_extension ".lua" then
if file:extension() == ".lua" then
tests[#tests+1] = fs.relative(file, rootdir):lexically_normal():string()
end
end
Expand Down
2 changes: 1 addition & 1 deletion compile/clang-format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local function scan(dir)
if fs.is_directory(path) then
scan(path)
else
local ext = path:extension():string():lower()
local ext = path:extension()
if EXTENSION[ext] then
sourcefile[#sourcefile+1] = path:string()
end
Expand Down
2 changes: 1 addition & 1 deletion compile/emcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if not lm.notest then
local fs = require "bee.filesystem"
local rootdir = fs.path(lm.workdir) / ".."
for file in fs.pairs(rootdir / "test", "r") do
if file:equal_extension ".lua" then
if file:extension() == ".lua" then
tests[#tests + 1] = fs.relative(file, rootdir):lexically_normal():string()
end
end
Expand Down

0 comments on commit 9408f46

Please sign in to comment.