Skip to content

Commit

Permalink
build: add --without-march-native flag
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Feb 28, 2020
1 parent 2d8b558 commit c99665e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,16 @@ AS_IF([test "x$enable_debug" = xyes],

AM_CONDITIONAL([KERNEL_DEBUG], [test "x$enable_debug" = xyes])

AX_CHECK_COMPILE_FLAG(-march=native,
AX_APPEND_FLAG(-march=native))
AC_ARG_WITH([march-native],
[AS_HELP_STRING([--without-march-native],
[do not use compile flag -march=native even if available])]
)

AS_IF([test "x$with_march_native" == "xno" ],
[AC_MSG_NOTICE([the compile flag -march=native will not be used even if available])])

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

dnl ##
dnl ## Output everything
Expand Down

0 comments on commit c99665e

Please sign in to comment.