Changeset 711:eed2de0c67a0
- 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
| r703 |
r711 |
|
| 32 | 32 | TRIPLE = options["target-override"] |
|---|
| 33 | 33 | else |
|---|
| 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() |
|---|
| 36 | 36 | end |
|---|
| | 37 | |
|---|
| | 38 | io.write("Default target: '"..TRIPLE.."'\n"); |
|---|
| 37 | 39 | |
|---|
| 38 | 40 | -- D version - don't change these !!! |
|---|