[Issue 15071] filenames and module names with case-insensitive HFS+

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 12 01:21:46 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15071

--- Comment #10 from ag0aep6g at gmail.com ---
(In reply to Steve Biedermann from comment #9)
> But then maybe there is something wrong with the file lookup from dub.
> (Wrong case = link error, correct case = success)

I don't know how dub works exactly, but if it fails, it probably generates the
command line from file names. I.e., it runs `dmd main.d bug.d` and then it hits
the issue at hand.

> I just tried to compile with rdmd and it seems that rdmd also correctly
> resolves the file, regardless of the case.

rdmd generates the command line arguments from the imports. So from main.d and
the `import Bug;` in there, rdmd makes `dmd main.d Bug.d`. Case of the import
matches case on the command line, so it works.

> I also tried to specify the -I command line switch for dmd, but it's the
> same as without (link errors).

-I isn't related to this. There's always an implicit `-I.`. dmd needs all
source files (or object files) on the command line. It doesn't automatically
compile imported modules.

If you need further clarification, please make a thread in the Learn group.
Let's not hijack this issue discussion. http://forum.dlang.org/group/learn

--


More information about the Digitalmars-d-bugs mailing list