[Issue 22034] std.ascii can't be used with -betterc
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 19 13:53:21 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22034
--- Comment #3 from Heromyth <bitworld at qq.com> ---
(In reply to mipri from comment #1)
> same compiler, non-betterC cc:
>
> cc bcascii.o -o /tmp/dmd_run2D9Hdd -m64 -Xlinker --export-dynamic
> -L/home/mipri/dmd2/linux/bin64/../lib64 -Xlinker -Bstatic -lphobos2 -Xlinker
> -Bdynamic -lpthread -lm -lrt -ldl
>
> -betterC cc (with same error):
>
> cc bcascii.o -o /tmp/dmd_run3XoXBx -m64 -Xlinker --export-dynamic
> -L/home/mipri/dmd2/linux/bin64/../lib64 -lpthread -lm -lrt -ldl
>
> -betterC -L-lphobos2 (build successful)
>
> cc bcascii.o -o /tmp/dmd_runbkX3TQ -m64 -Xlinker --export-dynamic -lphobos2
> -L/home/mipri/dmd2/linux/bin64/../lib64 -lpthread -lm -lrt -ldl
>
> This behavior's also seen with a freshly built devel dmd.
You are right. The phobos2 is not linked by default for -betterc.
--
More information about the Digitalmars-d-bugs
mailing list