Script for Building GDC from Source
eles via D.gnu
d.gnu at puremagic.com
Tue Sep 16 04:16:16 PDT 2014
On Friday, 5 September 2014 at 15:49:22 UTC, Nordlöw wrote:
> Have anyone put together a build script for
> downloading/git-cloning and building a particular branch, say
> gdc-4.9, of GDC?
Just throwing mine into the game:
Attention: it really cleans up the git repositories (cloned from
github) and you will LOOSE all other files that accidentally you
might have placed in those gcc-git and gdc-git folders.
#!/bin/bash
CRTDIR=`pwd`
cd ${GDC_GCCSRC}
git clean -fxd
git checkout .
git switch gcc-4_9-branch
git pull
cd ${GDC_GDCSRC}
git clean -fxd
git checkout .
git switch gdc-4.9
git pull
cd ${GDC_GDCSRC}
./setup-gcc.sh ${GDC_GCCSRC}
mkdir -p ${GDC_OBJDIR}
cd ${GDC_OBJDIR}
rm -rf ./*
${GDC_GCCSRC}/configure --enable-languages=d --disable-bootstrap
--enable-checking=release --prefix=/opt/gdc-4.9
make -j8
sudo make install
cd ${CRTDIR}
More information about the D.gnu
mailing list