www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GDC guys, can this toolchain support D?

reply Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
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 ;)
Jan 10 2017
parent reply Johannes Pfau <nospam example.com> writes:
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
Jan 10 2017
parent Manu via Digitalmars-d <digitalmars-d puremagic.com> writes:
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...
Jan 10 2017