View previous topic :: View next topic |
Author |
Message |
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Sat Mar 12, 2005 10:03 am Post subject: More posix stuff |
|
|
Code: |
Index: util/fdt.d
===================================================================
--- util/fdt.d (revision 18)
+++ util/fdt.d (working copy)
@@ -55,11 +55,11 @@
import std.c.linux.linux;
alias std.c.linux.linux posix;
}
- version(darwin) {
+ else version(darwin) {
import std.c.darwin.darwin;
alias std.c.darwin.darwin posix;
}
- version(Unix) {
+ else version(Unix) {
import std.c.unix;
alias std.c.unix posix;
}
|
It was including both of linux/darwin, and std.c.unix ? |
|
Back to top |
|
|
afb
Joined: 26 Jan 2005 Posts: 137 Location: Sweden
|
Posted: Sat Mar 12, 2005 10:05 am Post subject: |
|
|
Code: |
Index: build.d
===================================================================
--- build.d (revision 18)
+++ build.d (working copy)
@@ -722,8 +722,12 @@
if(lLinking) {
// Ensure the linker gets the right executable name to create.
+ version(Posix)
+ lOutText ~= std.string.format("?s\"?s\"\n",vOutFileSwitch, lTargetName);
+ else
lOutText ~= std.string.format("\"?s\"\n",vOutFileSwitch ~ lTargetName);
+
// Include the default libraries.
foreach( char[] lLib; vDefaultLibs)
{
|
It was passing "-o filename" to dmd, which just results
in the parameter "-o filename" not being recognized...
The correct way is to pass -o"whatever", as per patch above |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Tue Mar 15, 2005 8:16 pm Post subject: |
|
|
Thanks. I've applied both these patches to the next version. Also, the wrapping of quotes around the supplied path would also effect the -I switch as well. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|