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

Bud: Support forward slashes in windows?

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



Joined: 06 Mar 2005
Posts: 68

PostPosted: Wed Nov 15, 2006 9:45 am    Post subject: Bud: Support forward slashes in windows? Reply with quote

Can bud support forward slashes in windows? I really like my tools to work in a cross-platform and universal way (like javac, ant, cygwin utils, etc.), and it would be great if bud was no exception. Even dmd supports forward slashes in windows.
I didn't run into this problem before because I use Apache ant on top of build, which translates the dir separators automatically, but now there are situations were I want to use build directly, and this path sep limitations gets annoying.
_________________
Bruno Medeiros
Back to top
View user's profile Send private message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Wed Nov 15, 2006 4:56 pm    Post subject: Reply with quote

*DELETED*
_________________
Bruno Medeiros


Last edited by phoenix on Thu Nov 16, 2006 10:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Derek Parnell



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

PostPosted: Wed Nov 15, 2006 7:57 pm    Post subject: Re: Bud: Support forward slashes in windows? Reply with quote

phoenix wrote:
Can bud support forward slashes in windows?

I thought it already did! What specific problem are you experiencing?

Here is an example that I just ran on my Windows XP machine...
Code:

C:\Development\RBX\RSPL\src\mb>bud c:/temp/test.d -full
Path and Version : y:\util\bud.exe v3.04(2512)
  built on Mon Oct 16 11:03:49 2006

C:\Development\RBX\RSPL\src\mb>

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Thu Nov 16, 2006 10:03 am    Post subject: Reply with quote

TEST
(sry about the mix up)
_________________
Bruno Medeiros


Last edited by phoenix on Thu Nov 16, 2006 10:05 am; edited 2 times in total
Back to top
View user's profile Send private message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Thu Nov 16, 2006 10:04 am    Post subject: Reply with quote

Hum, I ran into problems with the -I switch. This works:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:\devel\libs\D-ext

But not this:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:/devel/libs/D-ext
src\test.d(2): module coreext cannot read file 'coreext.d'


The first bug is failure to realize that D:/devel/libs/D-ext is an absolute and not a relative path, see:
(Notice the -ID:\project\DeeTest\/devel/libs/D-ext\ )
Code:
D:\project\DeeTest>bud src/test.d -full -I D:/devel/libs/D-ext -test -Rn
Command: 'D:\devel\D.tools\dmd\bin\dmd.exe -c -op -ID:\project\DeeTest\/devel/li
bs/D-ext\ -ID:\devel\D.tools\dmd\src\phobos\ -ID:\project\DeeTest\src\ src\test.
d '
Command: 'D:\devel\D.tools\dm\bin\link.exe src\test.obj,src\test.exe,src\test.ma
p,,src\test.def, /noi/map'



Second bug, forward slash parameters aren't correctly translated when passed to link.exe , which can't handle them:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:\devel/libs/D-ext -test -Rn
Command: 'D:\devel\D.tools\dmd\bin\dmd.exe -c -op -ID:\devel/libs/D-ext\ -ID:\de
vel\D.tools\dmd\src\phobos\ -ID:\project\DeeTest\src\ src\test.d D:\devel/libs/D
-ext\coreext.d '
Command: 'D:\devel\D.tools\dm\bin\link.exe src\test.obj+D:\deve /libs/D-ext\core
ext.obj,src\test.exe,src\test.map,,src\test.def,,/noi/map'

_________________
Bruno Medeiros
Back to top
View user's profile Send private message
Derek Parnell



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

PostPosted: Fri Nov 17, 2006 12:52 am    Post subject: Reply with quote

phoenix wrote:
Hum, I ran into problems with the -I switch. This works:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:\devel\libs\D-ext

But not this:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:/devel/libs/D-ext
src\test.d(2): module coreext cannot read file 'coreext.d'


The first bug is failure to realize that D:/devel/libs/D-ext is an absolute and not a relative path, see:
(Notice the -ID:\project\DeeTest\/devel/libs/D-ext\ )
Code:
D:\project\DeeTest>bud src/test.d -full -I D:/devel/libs/D-ext -test -Rn
Command: 'D:\devel\D.tools\dmd\bin\dmd.exe -c -op -ID:\project\DeeTest\/devel/li
bs/D-ext\ -ID:\devel\D.tools\dmd\src\phobos\ -ID:\project\DeeTest\src\ src\test.
d '
Command: 'D:\devel\D.tools\dm\bin\link.exe src\test.obj,src\test.exe,src\test.ma
p,,src\test.def, /noi/map'


Second bug, forward slash parameters aren't correctly translated when passed to link.exe , which can't handle them:
Code:
D:\project\DeeTest>bud src/test.d -full -I D:\devel/libs/D-ext -test -Rn
Command: 'D:\devel\D.tools\dmd\bin\dmd.exe -c -op -ID:\devel/libs/D-ext\ -ID:\de
vel\D.tools\dmd\src\phobos\ -ID:\project\DeeTest\src\ src\test.d D:\devel/libs/D
-ext\coreext.d '
Command: 'D:\devel\D.tools\dm\bin\link.exe src\test.obj+D:\deve /libs/D-ext\core
ext.obj,src\test.exe,src\test.map,,src\test.def,,/noi/map'

Actually both result from the same issue. The ability to handle forward slashes in any file present will be added to the (Windows) tool.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
phoenix



Joined: 06 Mar 2005
Posts: 68

PostPosted: Mon Nov 20, 2006 11:16 am    Post subject: Reply with quote

Nice
_________________
Bruno Medeiros
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