[PATCHv4] powerpc: Automatic CPU detection in preconfigure
Paul E Murphy
murphyp@linux.ibm.com
Fri Jun 12 13:58:12 GMT 2020
On 6/8/20 4:10 PM, Paul E. Murphy via Libc-alpha wrote:
> + archcpu=`echo "int foo () { return 0; }" \
> + | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \
> + | grep -E "mcpu=|.machine" -m 1 \
> + | sed -e "s/.*machine \(.*\)/\1/" -e "s/.*mcpu=\(.*\)\"/\1/"`
Pushed with simplification to:
+ | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"`
As indirectedly suggested by Tulio on v3:
<https://sourceware.org/pipermail/libc-alpha/2020-June/114912.html>
More information about the Libc-alpha
mailing list