libmir / mir

Mir (backports): Sparse tensors, Hoffman
http://mir.libmir.org
Boost Software License 1.0
210 stars 20 forks source link

enable -singleobj #357

Closed MartinNowak closed 7 years ago

MartinNowak commented 7 years ago
MartinNowak commented 7 years ago

Mmh, dub passes this as well to ldmd, though it's dflags-ldc. And ldc complains about the duplicate flag.

thewilsonator commented 7 years ago

I got a duplicate flag when trying to use -oq flag, but ldc didn't complain. A dub bug perhaps?

dnadlinger commented 7 years ago

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.