Yeah but using -of creates an executable in the directory I provide. RDMD is supossed to be used with hiding the executable in a temp dir, afaik.
So it's hashing at play, ok. Just wanted to know why. Personally I'd like RDMD to hide the map and deps files as well, I don't know why it only hides the executable and leaves the rest of the trash behind. (okay it's not trash, but for quick compile-test cycles I don't need the map and dependancy files). On Sun, Sep 12, 2010 at 10:29 PM, Nick Sabalausky <a...@a.a> wrote: > "Andrej Mitrovic" <n...@none.none> wrote in message > news:i6jc5g$1p2...@digitalmars.com... >> Just a quick question, why does the map file have a long name like so: >> >> file_test-d-40DA973DB4C6AD075993AB5CD9866DDE.map ? > > Because you're using rdmd and not using -of. > > rdmd comes up with an executable filename by hashing the source file's > content (I'm not 100% sure why, something about filename-uniqueness or > caching and change-tracking, I'd imagine). And dmd always uses the > executable filename as the name of the map file (which makes sense when you > consider executables made from multiple modules). > > If you use -of, or if you just use dmd directly, then that hash value > doesn't get added. > > >