www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18390] New: Allow to set the linker via a CLI flag

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

          Issue ID: 18390
           Summary: Allow to set the linker via a CLI flag
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: bootcamp
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

On Linux both GCC and LLVM (aka clang) work with DMD.
It would be nice to be able to set the default linker by a CLI flag (like the
CC environment variable)

See also:

https://github.com/dlang/dmd/blob/7e8bea0e83314f39b8c8b2bddbfbff2b0bdee74d/src/dmd/link.d#L420
https://github.com/dlang/dlang.org/pull/2068#discussion_r166515672

--
Feb 07 2018