mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-01 20:43:13 +01:00
Changed premake script to write target triple to a file, then read that, instead of using popen
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user