Commits

Jason Perkins  committed b98c0aa

Route all output through premake.out() to simplify interception and overriding.
Fix a related bug in the C++ makefile generator.

  • Participants
  • Parent commits 5edee63

Comments (0)

Files changed (2)

File src/actions/make/make_cpp.lua

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

File src/base/premake.lua

 ---
 
 	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