Author: reimar Date: Sun Aug 30 18:51:28 2020 New Revision: 38195 Log: configure: allow using --enable-runtime-cpudetection for Arm builds. This is mostly to allow undoing the effects of the previous patch which adds -march=native if it is not set Modified: trunk/configure Modified: trunk/configure ============================================================================== --- trunk/configure Sun Aug 30 18:27:41 2020 (r38194) +++ trunk/configure Sun Aug 30 18:51:28 2020 (r38195) @@ -1920,7 +1920,7 @@ fi echo "Detected operating system: $system_name" echo "Detected host architecture: $host_arch" -if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then +if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc && ! arm; then die "Runtime CPU detection only works for x86, x86-64 and PPC!" fi @@ -9716,6 +9716,14 @@ If you suspect a bug, please read DOCS/H EOF +if test "$_runtime_cpudetection" = yes && arm; then + cat << EOF +WARNING: --enable-runtime-cpudetection is not fully supported on Arm, +it only compiles for your compilers default target instead of the host +CPU (-match=native). +EOF +fi + if test "$warn_cflags" = yes; then cat <<EOF
On 2020-08-30 18:51 +0300, reimar wrote:
Author: reimar Date: Sun Aug 30 18:51:28 2020 New Revision: 38195
Log: configure: allow using --enable-runtime-cpudetection for Arm builds.
This is mostly to allow undoing the effects of the previous patch which adds -march=native if it is not set
Modified: trunk/configure
Modified: trunk/configure ============================================================================== --- trunk/configure Sun Aug 30 18:27:41 2020 (r38194) +++ trunk/configure Sun Aug 30 18:51:28 2020 (r38195) @@ -1920,7 +1920,7 @@ fi echo "Detected operating system: $system_name" echo "Detected host architecture: $host_arch"
-if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then +if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc && ! arm; then die "Runtime CPU detection only works for x86, x86-64 and PPC!" fi
@@ -9716,6 +9716,14 @@ If you suspect a bug, please read DOCS/H
EOF
+if test "$_runtime_cpudetection" = yes && arm; then + cat << EOF +WARNING: --enable-runtime-cpudetection is not fully supported on Arm, +it only compiles for your compilers default target instead of the host +CPU (-match=native).
Here is a little typo, should be: -march=native If anyone is pushing changes ATM, please consider fix the typo too. Thanks in advance.
+EOF +fi + if test "$warn_cflags" = yes; then cat <<EOF
Alexander
On Sat, Oct 31, 2020 at 09:38:51PM +0100, Alexander Strasser wrote:
On 2020-08-30 18:51 +0300, reimar wrote:
+if test "$_runtime_cpudetection" = yes && arm; then + cat << EOF +WARNING: --enable-runtime-cpudetection is not fully supported on Arm, +it only compiles for your compilers default target instead of the host +CPU (-match=native).
Here is a little typo, should be: -march=native
Fixed.
participants (3)
-
Alexander Strasser -
reimar -
Reimar Döffinger