Route all output through premake.out() to simplify interception and overriding.

Fix a related bug in the C++ makefile generator.
This commit is contained in:
Jason Perkins 2014-02-08 12:26:18 -05:00
parent 1cbc2bef9d
commit 6b7a05722d
2 changed files with 2 additions and 4 deletions

View File

@ -41,7 +41,7 @@
}
function make.cpp.generate(prj)
io.eol("\n")
premake.eol("\n")
premake.callarray(make, cpp.elements.makefile, prj)
end

View File

@ -196,11 +196,9 @@
---
function premake.outln(s)
premake.out(s)
if not _captured then
io.write(s)
io.write(_eol or "\n")
else
table.insert(_captured, s)
end
end