shidding and fardding

This commit is contained in:
lemon-sherbet 2018-11-16 16:54:37 +01:00
parent c1852a70dd
commit 650cda22ac
1 changed files with 7 additions and 4 deletions

View File

@ -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()