Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2022 16:52:21 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c7f1f693fa21 - main - math/pffft: remove -march=native
Message-ID:  <202202161652.21GGqL7l065937@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c7f1f693fa21fcfbf2b41cafdfde1b29538975c1

commit c7f1f693fa21fcfbf2b41cafdfde1b29538975c1
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-02-16 16:49:45 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-16 16:49:45 +0000

    math/pffft: remove -march=native
---
 math/pffft/files/patch-CMakeLists.txt | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/math/pffft/files/patch-CMakeLists.txt b/math/pffft/files/patch-CMakeLists.txt
index 5a3a9f50d8ad..4ad2357aa128 100644
--- a/math/pffft/files/patch-CMakeLists.txt
+++ b/math/pffft/files/patch-CMakeLists.txt
@@ -9,7 +9,16 @@
  set_target_properties(PFFFT PROPERTIES OUTPUT_NAME "pffft")
  target_compile_definitions(PFFFT PRIVATE _USE_MATH_DEFINES)
  if (USE_SCALAR_VECT)
-@@ -193,7 +193,7 @@ endif()
+@@ -173,8 +173,6 @@ if (USE_SIMD AND USE_TYPE_DOUBLE)
+     else()
+       set_property(SOURCE pffft_double.c PROPERTY COMPILE_FLAGS "-mavx")
+     endif()
+-  else()
+-    set_property(SOURCE pffft_double.c PROPERTY COMPILE_FLAGS "-march=native")
+   endif()
+   if(DISABLE_SIMD_AVX)
+     target_compile_definitions(PFFFT PRIVATE PFFFT_AVX_DISABLE=1)
+@@ -193,7 +191,7 @@ endif()
  
  if (USE_TYPE_FLOAT)
  
@@ -18,7 +27,7 @@
    set_target_properties(PFDSP PROPERTIES OUTPUT_NAME "pfdsp")
    target_compile_definitions(PFDSP PRIVATE _USE_MATH_DEFINES)
    if (USE_DEBUG_ASAN)
-@@ -218,7 +218,7 @@ endif()
+@@ -218,7 +216,7 @@ endif()
  if (USE_FFTPACK)
  
    # float / single precision
@@ -27,7 +36,7 @@
    target_compile_definitions(FFTPACK_FLOAT PRIVATE _USE_MATH_DEFINES)
    target_compile_options(FFTPACK_FLOAT PRIVATE $<$<C_COMPILER_ID:GNU>:-Wall -Wextra -pedantic>)
    target_link_libraries( FFTPACK_FLOAT ${MATHLIB} )
-@@ -227,7 +227,7 @@ if (USE_FFTPACK)
+@@ -227,7 +225,7 @@ if (USE_FFTPACK)
    )
  
    # double precision
@@ -36,7 +45,7 @@
    target_compile_definitions(FFTPACK_DOUBLE PRIVATE _USE_MATH_DEFINES)
    target_compile_definitions(FFTPACK_DOUBLE PUBLIC FFTPACK_DOUBLE_PRECISION)
    target_compile_options(FFTPACK_DOUBLE PRIVATE $<$<C_COMPILER_ID:GNU>:-Wall -Wextra -pedantic>)
-@@ -251,7 +251,7 @@ endif()
+@@ -251,7 +249,7 @@ endif()
  
  if (USE_TYPE_FLOAT)
    # only 'float' supported in PFFASTCONV
@@ -45,7 +54,7 @@
    set_target_properties(PFFASTCONV PROPERTIES OUTPUT_NAME "pffastconv")
    target_compile_definitions(PFFASTCONV PRIVATE _USE_MATH_DEFINES)
    if (USE_DEBUG_ASAN)
-@@ -447,7 +447,9 @@ endif()
+@@ -447,7 +445,9 @@ endif()
  
  ######################################################
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202161652.21GGqL7l065937>