Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Feb 18, 2024
1 parent 3dc449a commit 257a62f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions configure_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
CPU=$1

if [ "${CPU}" = "arm1176jzf-s" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=vfp -mfloat-abi=hard"
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=vfp -mfloat-abi=hard"
elif [ "${CPU}" = "cortex-a53" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-fp-armv8 -mfloat-abi=hard"
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-fp-armv8 -mfloat-abi=hard"
elif [ "${CPU}" = "cortex-a7" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-vfpv4 -mfloat-abi=hard"
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-vfpv4 -mfloat-abi=hard"
elif [ "${CPU}" = "cortex-a72" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-fp-armv8 -mfloat-abi=hard"
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=. -mcpu=${CPU} -mfpu=neon-fp-armv8 -mfloat-abi=hard"
elif [ "${CPU}" = "generic" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=."
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=."
elif [ "${CPU}" = "nocpuspecific" ]; then
CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=."
export CXXFLAGS="-g -O2 -fdebug-prefix-map=$(pwd)=."
else
echo "unknown core: ${CPU}"
exit 1
Expand All @@ -25,10 +25,6 @@ else
export BUCKET="r2cloud/cpu-${CPU}"
fi

ASMFLAGS="${CXXFLAGS} -mthumb"
CFLAGS=${CXXFLAGS}
export ASMFLAGS="${CXXFLAGS} -mthumb"
export CFLAGS=${CXXFLAGS}

echo "CFLAGS=${CFLAGS}" >> $GITHUB_ENV
echo "ASMFLAGS=${ASMFLAGS}" >> $GITHUB_ENV
echo "CXXFLAGS=${CXXFLAGS}" >> $GITHUB_ENV
echo "BUCKET=${BUCKET}" >> $GITHUB_ENV

0 comments on commit 257a62f

Please sign in to comment.