Mercurial > projects > ldc
comparison premake.lua @ 711:eed2de0c67a0
Changed premake script to write target triple to a file, then read that, instead of using popen
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 20 Oct 2008 23:33:59 +0200 |
parents | 06576ece1a1b |
children | 6de2ed4f0abe |
comparison
equal
deleted
inserted
replaced
710:20a5180f2e80 | 711:eed2de0c67a0 |
---|---|
29 | 29 |
30 TRIPLE = ""; | 30 TRIPLE = ""; |
31 if options["target-override"] then | 31 if options["target-override"] then |
32 TRIPLE = options["target-override"] | 32 TRIPLE = options["target-override"] |
33 else | 33 else |
34 local p = io.popen("sh config.guess") | 34 os.execute("sh config.guess > default-target-triple.tmp") |
35 TRIPLE = p:read() | 35 TRIPLE = io.open("default-target-triple.tmp"):read() |
36 end | 36 end |
37 | |
38 io.write("Default target: '"..TRIPLE.."'\n"); | |
37 | 39 |
38 -- D version - don't change these !!! | 40 -- D version - don't change these !!! |
39 DMDV1 = "1" | 41 DMDV1 = "1" |
40 | 42 |
41 -- idgen | 43 -- idgen |