View previous topic :: View next topic |
Author |
Message |
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Wed Nov 15, 2006 9:45 am Post subject: Bud: Support forward slashes in windows? |
|
|
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 |
|
|
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Wed Nov 15, 2006 4:56 pm Post subject: |
|
|
*DELETED* _________________ Bruno Medeiros
Last edited by phoenix on Thu Nov 16, 2006 10:04 am; edited 1 time in total |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Wed Nov 15, 2006 7:57 pm Post subject: Re: Bud: Support forward slashes in windows? |
|
|
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 |
|
|
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Thu Nov 16, 2006 10:03 am Post subject: |
|
|
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 |
|
|
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Thu Nov 16, 2006 10:04 am Post subject: |
|
|
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 |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Fri Nov 17, 2006 12:52 am Post subject: |
|
|
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 |
|
|
phoenix
Joined: 06 Mar 2005 Posts: 68
|
Posted: Mon Nov 20, 2006 11:16 am Post subject: |
|
|
Nice _________________ Bruno Medeiros |
|
Back to top |
|
|
|
|
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
|