FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

More posix stuff

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Sat Mar 12, 2005 10:03 am    Post subject: More posix stuff Reply with quote

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
View user's profile Send private message
afb



Joined: 26 Jan 2005
Posts: 137
Location: Sweden

PostPosted: Sat Mar 12, 2005 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Tue Mar 15, 2005 8:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group