Commit d6a338cb authored by Arun Raghavan's avatar Arun Raghavan
Browse files

build: Use CXXFLAGS instead of CFLAGS in compile testing

This is needed since we're using AC_LANG_CPLUSPLUS
parent e4b1cac2
......@@ -84,7 +84,7 @@ AC_ARG_ENABLE([neon],
AS_IF([test "x$enable_neon" != "xno"],
AS_IF([test "x$enable_neon" != "xruntime"],
[
save_CFLAGS="$CFLAGS"; CFLAGS="-mfpu=neon $CFLAGS"
save_CXXFLAGS="$CXXFLAGS"; CXXFLAGS="-mfpu=neon $CXXFLAGS"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[
......@@ -94,7 +94,7 @@ AS_IF([test "x$enable_neon" != "xno"],
HAVE_NEON=1
ARCH_CFLAGS="-mfpu=neon"
])
CFLAGS="$save_CFLAGS"
CXXFLAGS="$save_CXXFLAGS"
],
[
HAVE_NEON=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment