[Issue 6622] rdmd --makedepend lists "dmd.conf" and "dmd"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 8 15:48:13 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6622



--- Comment #6 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2011-09-08 15:48:00 PDT ---
Sorry, that was pretty long-winded, so let me summarize:

I believe the current behavior is correct.

Why? Because the list of .d dependencies is *inherently* dependent on the
*specific* compiler, anyway. Due to the language itself, there's no getting
around that. So even if dmd.exe and dmd.conf/sc.ini are omitted, the results of
"rdmd --makedepend" are *still* dependent on the specific compiler used.

Why is the .d list dependent on the specific compiler? Because there might be
conditional includes:

// I probably have these identifiers wrong, but whatever.
version(DMD)
    include foo_dmd;
else version(GDC)
    include foo_gdc;
else version(LDC)
    include foo_ldc;

// "LittleEndian" was changed to "littleEndian" in DMD 2.055
// Basically, this could be anything in Phobos that's changed
// between two versions of DMD.
static if(__traits(compiles, Endian.littleEndian))
    include foo_A;
else
    include foo_B;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list