Closed MartinNowak closed 8 years ago
Mmh, dub passes this as well to ldmd, though it's dflags-ldc. And ldc complains about the duplicate flag.
I got a duplicate flag when trying to use -oq flag, but ldc didn't complain. A dub bug perhaps?
LDC should probably allow multiple mentions of -singleobj
, in line with how most other DMD-style flags are handled. LLVM disallows duplicate flags by default, and we haven't ever made a point out of ensuring they are allowed everywhere (or the decision to do so, for that matter).
When building executables through LDMD, it is already the default, though, and will also be for straight ldc2
starting from the next release.