Thread overview | |||||
---|---|---|---|---|---|
|
January 10, 2017 GDC guys, can this toolchain support D? | ||||
---|---|---|---|---|
| ||||
Attachments:
| Can any of the GDC guys comment on how difficult it would be to get this toolchain build script to include building GDC? https://github.com/SaturnSDK/Saturn-SDK-GCC-SH2 I have a mate who's hacking on the Saturn and wants to build one of my projects. It'd be a really great test for embedded D; fairly small realtime target. I expect binary size to be a problem ;) |
January 10, 2017 Re: GDC guys, can this toolchain support D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | Am Tue, 10 Jan 2017 18:22:42 +1000 schrieb Manu via Digitalmars-d <digitalmars-d@puremagic.com>: > Can any of the GDC guys comment on how difficult it would be to get this toolchain build script to include building GDC? > > https://github.com/SaturnSDK/Saturn-SDK-GCC-SH2 > > I have a mate who's hacking on the Saturn and wants to build one of my > projects. > It'd be a really great test for embedded D; fairly small realtime > target. I expect binary size to be a problem ;) > Looks like a trivial problem: The toolchain uses GCC 6.2.0 so there should be no problem at all to add D support: build-gcc-final.sh: - --prefix=$INSTALLDIR --enable-languages=c,c++ \ + --prefix=$INSTALLDIR --enable-languages=c,c++,d --disable-libphobos \ extract-source.sh: rm -rf gcc-${GCCVER} exit 1 fi + git clone https://github.com/D-Programming-GDC/GDC.git + pushd GDC + git checkout gdc-6 + ./setup-gcc.sh ../gcc-${GCCVER} + popd -- Johannes |
January 11, 2017 Re: GDC guys, can this toolchain support D? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johannes Pfau Attachments:
| On 11 January 2017 at 05:44, Johannes Pfau via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
> Am Tue, 10 Jan 2017 18:22:42 +1000
> schrieb Manu via Digitalmars-d <digitalmars-d@puremagic.com>:
>
> > Can any of the GDC guys comment on how difficult it would be to get this toolchain build script to include building GDC?
> >
> > https://github.com/SaturnSDK/Saturn-SDK-GCC-SH2
> >
> > I have a mate who's hacking on the Saturn and wants to build one of my
> > projects.
> > It'd be a really great test for embedded D; fairly small realtime
> > target. I expect binary size to be a problem ;)
> >
>
> Looks like a trivial problem: The toolchain uses GCC 6.2.0 so there should be no problem at all to add D support:
>
> build-gcc-final.sh:
> - --prefix=$INSTALLDIR --enable-languages=c,c++ \
> + --prefix=$INSTALLDIR --enable-languages=c,c++,d
> --disable-libphobos \
>
> extract-source.sh:
> rm -rf gcc-${GCCVER}
> exit 1
> fi
> + git clone https://github.com/D-Programming-GDC/GDC.git
> + pushd GDC
> + git checkout gdc-6
> + ./setup-gcc.sh ../gcc-${GCCVER}
> + popd
>
That's easy! I'll give it a shot...
|
Copyright © 1999-2021 by the D Language Foundation