[Issue 17796] ldc's -oq (write full module path for objects) breaks linking
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Sep 16 15:22:20 UTC 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17796
Rainer Schuetze <r.sagitario at gmx.de> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de
--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> ---
I guess you specify -oq as an additional command line option? Visual D doesn't
interpret that. Instead it uses -op if you enable "keep path from source file"
on the Compiler->Output page.
-oq is rather intractable for a build tool because it uses the module name, not
the file name to generate the object file name path. It needs quite a bit of
extra machinery to determine the actual module name.
If you use "combined compile and link" LDC takes care of calling the linker
immediately after compiling, so shouldn't have a problem, too.
BTW: -op and -oq don't work well together: you usually get the package both as
a sub directory and as part of the object file name.
--
    
    
More information about the Digitalmars-d-bugs
mailing list