Open mw66 opened 1 week ago
https://github.com/atilaneves/dpp/issues/348
This is a related issue: in many dub packages from https://code.dlang.org/
the project dub.json it has flag "-dip25", however gdc does not recognize this:
gdc -dip25 ...
d21: warning: unrecognized gcc debugging option: i
d21: warning: unrecognized gcc debugging option: 2
d21: warning: unrecognized gcc debugging option: 5
Instead of asking each library owner update their dub.json file, I think it's better dub
can translate this flag to gdc
to -fpreview=dip25
, so all the existing libraries can be build without change.
System information
https://github.com/atilaneves/unit-threaded/issues/314
Bug Description
Hi, I'm trying to build unit-threaded/2.2.0, using gdc:
got an error:
found this:
https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gdc.pdf
looks like GDC's flag called
fpreview
instead ofpreview
.Expected Behavior
I think instead of asking the programmer to specify:
dflags-dmd {...}
dflags-ldc {...}
dflags-gdc {...}
separately, dub can do such conversion to make life easier.