From 9d2853f7be5b74d868d454b2a2c8f3291d1553fe Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Mon, 20 Oct 2008 23:33:59 +0200 Subject: [PATCH] Changed premake script to write target triple to a file, then read that, instead of using popen --- premake.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/premake.lua b/premake.lua index dcab0dec..77a5536b 100644 --- a/premake.lua +++ b/premake.lua @@ -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"