Compiling gcc-rs in Oct 2023

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
|darc|
DCEmu Webmaster
DCEmu Webmaster
Posts: 16393
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Mar 14, 2001 6:00 pm
Location: New Orleans, LA
Has thanked: 125 times
Been thanked: 92 times
Contact:

Compiling gcc-rs in Oct 2023

Post by |darc| »

As mentioned in the September GCC Front-End For Rust report:
Furthermore, a longstanding cross- compilation issue has been fixed, allowing some of our early gccrs users to continue using the compiler for Dreamcast/SH4 development.
Now, it's easy to build the GCC for Rust compiler once more. If you're already familiar with the standard instructions for building a toolchain, then you can follow these steps to build the gccrs toolchain:

Code: Select all

git clone -b gccdev https://github.com/KallistiOS/KallistiOS.git kos-gccdev
cd kos-gccdev/utils/dc-chain
cp config/config.mk.gccrs.sample config.mk
Edit the config.mk with your personal options. Then...

Code: Select all

make build-sh4
And you should have a built sh4 compiler with the preliminary Rust for GCC support.
These users thanked the author |darc| for the post (total 2):
GyroVorbisBB Hood
It's thinking...
Post Reply