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:
parent
1cbc2bef9d
commit
6b7a05722d
@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
function make.cpp.generate(prj)
|
||||
io.eol("\n")
|
||||
premake.eol("\n")
|
||||
premake.callarray(make, cpp.elements.makefile, prj)
|
||||
end
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user