mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-12 20:46:01 -05:00
clang as CC breaks newlib build
This commit is contained in:
@@ -125,6 +125,11 @@ cd $target/newlib
|
||||
unset CFLAGS
|
||||
unset LDFLAGS
|
||||
|
||||
OLD_CC=$CC
|
||||
OLD_CXX=$CXX
|
||||
unset CC
|
||||
unset CXX
|
||||
|
||||
if [ ! -f configured-newlib ]
|
||||
then
|
||||
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
|
||||
@@ -148,6 +153,9 @@ then
|
||||
touch installed-newlib
|
||||
fi
|
||||
|
||||
export CC=$OLD_CC
|
||||
export CXX=$OLD_CXX
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# build and install the final compiler
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user