GDC environment variable
Thomas Schwinge
thomas@codesourcery.com
Wed Dec 7 12:08:30 GMT 2022
Hi!
On 2022-12-07T12:05:18+0530, Ankur Saini via Gcc <gcc@gcc.gnu.org> wrote:
>> On 07-Dec-2022, at 11:42 AM, Dave Blanchard <dave@killthe.net> wrote:
>>
>> Is there an environment variable like 'CC' or 'CXX', which specifies the name of the D compiler to use, which I might need to set when bootstrapping GCC? Thanks.
>
> I do see make using ‘GDC' while building gcc compiler, maybe try changing that ?
Indeed 'GDC' is it. See my
<https://inbox.sourceware.org/gcc-patches/87mtlk8m1m.fsf@euler.schwinge.homeip.net>
for example:
> [...] I built myself a stock GCC 9.1 with '--enable-languages=d', and via
> '[...]/configure [...] CC=gcc-4.8 CXX=g++-4.8 GDC=[GCC 9.1]/bin/gdc [...]'
> I'm able to successfully bootstrap GCC, including GCC/D, in a mixed
> GCC 4.8/9.1 configuration, with subsequent good-looking 'make check-d'
> results. Per my superficial review of the build log file, the
> '[GCC 9.1]/bin/gdc' indeed is only used during stage 1 build, as it
> should be. [...]
Re GCC 9.1, however beware of <https://gcc.gnu.org/PR104749>
"stage1 d21 fails to link with GDC 9.1".
Grüße
Thomas
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
More information about the Gcc
mailing list