shidding and fardding
This commit is contained in:
parent
c1852a70dd
commit
650cda22ac
1 changed files with 7 additions and 4 deletions
11
lcmk.lua
11
lcmk.lua
|
@ -34,7 +34,7 @@ end
|
|||
function buildobj(o)
|
||||
local cmd = ("%s %s %s -c -o %s %s"):format(CC, CFLAGS, LINK, o.out, o.src)
|
||||
print("BUILDING OBJECT:\n"..cmd)
|
||||
os.execute(cmd)
|
||||
return os.execute(cmd)
|
||||
end
|
||||
|
||||
function buildprog()
|
||||
|
@ -44,7 +44,7 @@ function buildprog()
|
|||
end
|
||||
local cmd = ("%s %s %s -o %s %s"):format(CC, CFLAGS, LINK, PROG, objs)
|
||||
print("BUILDING PROGRAM:\n"..cmd)
|
||||
os.execute(cmd)
|
||||
return os.execute(cmd)
|
||||
end
|
||||
|
||||
buildf()
|
||||
|
@ -181,7 +181,10 @@ if _SHOWBUILD then
|
|||
end
|
||||
|
||||
for _,o in ipairs(tobuild) do
|
||||
buildobj(o)
|
||||
if not buildobj(o) then
|
||||
print("ERROR")
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
|
||||
buildprog()
|
||||
return buildprog()
|
||||
|
|
Loading…
Reference in a new issue