-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dmd -unittest against a library not compiled with -unittest gives undefined symbols #19342
Labels
Comments
timothee.cour2 commented on 2017-12-09T00:10:07Zdemangled error:
echo _D3fun__T1ATtZQf8opEqualsMxFNaNbNiNfSQBj__TQBiTtZQBoZb|ddemangle
const pure nothrow @nogc @safe bool fun.A!(ushort).A.opEquals(fun.A!(ushort).A)
echo _D3fun__T1ATtZQf11__xopEqualsFKxSQBf__TQBeTtZQBkKxQsZb|ddemangle
bool fun.A!(ushort).A.__xopEquals(ref const(fun.A!(ushort).A), ref const(fun.A!(ushort).A)) |
timothee.cour2 commented on 2017-12-09T00:11:00Z*** Issue 16477 has been marked as a duplicate of this issue. *** |
timothee.cour2 commented on 2017-12-09T00:20:51Zsame error whether we compile as .a, .dylib, or .o |
timothee.cour2 commented on 2017-12-09T00:23:42Zlikewise with ldc |
r.sagitario commented on 2018-01-05T09:14:53ZThat's a use case where the dreaded -allinst was added for: seperate compilation with different version, debug or unittest settings. In that case the template emission optimization fails to work because it assumes that the template is already emitted.
It's a bit strange that the optimization does not also avoid generating any code for the unittests, though. |
timothee.cour2 commented on 2018-01-05T15:25:21Zconfirmed that adding -allinst works (both with dmd and ldc), but indeed, this should be fixed.
question: what are downsides of -allinst? |
r.sagitario commented on 2018-01-05T21:33:40Zdownsides are slower compilation and bloated object files. Should not make a difference in the size of the executable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Timothee Cour (@timotheecour) reported this on 2017-12-09T00:08:32Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18049
CC List
Description
The text was updated successfully, but these errors were encountered: