www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17796] New: ldc's -oq (write full module path for objects)

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

          Issue ID: 17796
           Summary: ldc's -oq (write full module path for objects) breaks
                    linking
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: visuald
          Assignee: nobody puremagic.com
          Reporter: iamthewilsonator hotmail.com

ldc's `-oq` flag to enable writing the fully qualified module name as the name
for the .obj confuses visuald.

It tells the linker to look for
`\build\path\mod.obj` instead of 
`\build\path\fully.qualified.name.mod.obj`.

for a module with declaration `module fully.qualified.name.mod;`.

This prevents any projects that require `-oq` (due to their module layout) from
linking with visual studio / visuald. One can still use dub (which just calls
the compiler directly, it knows what its doing) manually on the command line to
successfully build and link.

--
Aug 30 2017