www.digitalmars.com         C & C++   DMDScript  

D - Preserving paths in .obj files.

reply Burton Radons <loth users.sourceforge.net> writes:
DMD currently produces .obj files in the current directory, stripping 
off any path provided.  Could there please be an option to preserve the 
path so that libraries with multiple modules with the same filename in 
different packages can be compiled?  "-preserve-paths" would work nicely.
Jul 25 2003
parent reply "Walter" <walter digitalmars.com> writes:
You mean have it place the .obj file in the same directory as the source was
found?

"Burton Radons" <loth users.sourceforge.net> wrote in message
news:bfqmh2$2mdm$1 digitaldaemon.com...
 DMD currently produces .obj files in the current directory, stripping
 off any path provided.  Could there please be an option to preserve the
 path so that libraries with multiple modules with the same filename in
 different packages can be compiled?  "-preserve-paths" would work nicely.
Jul 26 2003
next sibling parent "Rich C" <no spam.com> writes:
"Walter" <walter digitalmars.com> wrote in message
news:bfu79a$189$2 digitaldaemon.com...
 You mean have it place the .obj file in the same directory as the source
was
 found?
Or else (optionally) specify an object path, so you can control where the .obj file goes? Rich C.
Jul 26 2003
prev sibling parent Burton Radons <loth users.sourceforge.net> writes:
Walter wrote:
 You mean have it place the .obj file in the same directory as the source was
 found?
Unless if the object path prefix has been changed, yes. dmd bar\foo.d -preserve-paths -c Creates "bar\foo.obj". dmd bar\foo.d -preserve-paths -obaz -c Creates "baz\bar\foo.obj".
 "Burton Radons" <loth users.sourceforge.net> wrote in message
 news:bfqmh2$2mdm$1 digitaldaemon.com...
 
DMD currently produces .obj files in the current directory, stripping
off any path provided.  Could there please be an option to preserve the
path so that libraries with multiple modules with the same filename in
different packages can be compiled?  "-preserve-paths" would work nicely.
Jul 26 2003