mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-22 01:54:32 -05:00
22 lines
622 B
Bash
Executable File
22 lines
622 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#---------------------------------------------------------------------------------
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# build and install the full compiler
|
|
#---------------------------------------------------------------------------------
|
|
mkdir -p ${BUILDDIR}/$target/gcc
|
|
cd ${BUILDDIR}/$target/gcc
|
|
|
|
|
|
if [ ! -f built-gcc-stage2 ]
|
|
then
|
|
$MAKE || { echo "Error building gcc stage2"; exit 1; }
|
|
touch built-gcc-stage2
|
|
fi
|
|
|
|
if [ ! -f installed-gcc-stage2 ]
|
|
then
|
|
$MAKE install-strip || { echo "Error installing gcc"; exit 1; }
|
|
touch installed-gcc-stage2
|
|
fi
|