Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 711:eed2de0c67a0

Show
Ignore:
Timestamp:
10/20/08 17:33:59 (3 months ago)
Author:
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
branch:
default
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • premake.lua

    r703 r711  
    3232    TRIPLE = options["target-override"] 
    3333else 
    34     local p = io.popen("sh config.guess") 
    35     TRIPLE = p:read() 
     34    os.execute("sh config.guess > default-target-triple.tmp") 
     35    TRIPLE = io.open("default-target-triple.tmp"):read() 
    3636end 
     37 
     38io.write("Default target: '"..TRIPLE.."'\n"); 
    3739 
    3840-- D version - don't change these !!! 
Copyright © 2008, LDC Development Team.