Setting up a development environment for hacking GDC

Mike via D.gnu d.gnu at puremagic.com
Thu Oct 16 04:51:18 PDT 2014


On Sunday, 12 October 2014 at 09:11:16 UTC, Iain Buclaw via D.gnu 
wrote:

>
> Incremental Builds:
>
> When you make a change to either the gdc or gcc sources, 
> running make
> inside objdir will keep on doing incremental builds for you.  
> Some
> exceptions to the rule:
>
> * Adding/Removing files from libphobos or libdruntime require 
> you to
> re-run the setup-gcc.sh script
>
>   ./setup-gcc.sh --update ../gcc-devel
>
> * I have noted in certain circumstances (updating the frontend
> mostly), changes to dfrontend/idgen.c or dfrontend/impcnvgen.c
> sometimes do not trigger rebuilds of other sources.  When this 
> occurs,
> crashes or errors will look rather confusing.  That's because 
> the
> symbol table between two object files differ. Clean out all 
> objects
> from the gdc build directory and re-make it.

I see the instructions below for cleaning GDC and 
libphobos/libdruntime, but to clean GCC also, can we just do 
`make clean`?

>
> Clean Builds:
>
> Cleaning out gdc / cc1d only (from the objdir):
>
>   rm gcc/gdc gcc/d/*
>
> Cleaning out libphobos/libdruntime:
>
>   make clean-target-libphobos
>




More information about the D.gnu mailing list