Changed premake script to write target triple to a file, then read that, instead of using popen

This commit is contained in:
Tomas Lindquist Olsen
2008-10-20 23:33:59 +02:00
parent 7c7ed3ec12
commit 9d2853f7be

View File

@@ -31,10 +31,12 @@ TRIPLE = "";
if options["target-override"] then
TRIPLE = options["target-override"]
else
local p = io.popen("sh config.guess")
TRIPLE = p:read()
os.execute("sh config.guess > default-target-triple.tmp")
TRIPLE = io.open("default-target-triple.tmp"):read()
end
io.write("Default target: '"..TRIPLE.."'\n");
-- D version - don't change these !!!
DMDV1 = "1"