Skip to content

Commit

Permalink
build: remove the default flag -march=native
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Apr 6, 2022
1 parent f7422d1 commit 8d56865
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fi

AX_CHECK_BLISS()

# Check whether to use -march=native -mpopcnt and __builtin_ctzl
# Check whether to use -mpopcnt and __builtin_ctzl
AC_ARG_WITH([intrinsics],
[AS_HELP_STRING([--without-intrinsics],
[do not use compiler intrinsics even if available])]
Expand All @@ -127,10 +127,6 @@ AC_ARG_WITH([intrinsics],
AS_IF([test "x$with_intrinsics" == "xno" ],
[AC_MSG_NOTICE([compiler intrinsics will not be used even if available])])

AS_IF([test "x$with_intrinsics" != "xno"],
[AX_CHECK_COMPILE_FLAG(-march=native, AX_APPEND_FLAG(-march=native))
])

dnl compiler builtins
AC_DEFUN([CHECK_COMPILER_BUILTIN],
[AC_MSG_CHECKING([for $1])
Expand Down

0 comments on commit 8d56865

Please sign in to comment.