Navigation Menu

Skip to content

Commit

Permalink
Disable -Wfloat-equal for mruby
Browse files Browse the repository at this point in the history
Because mruby doesn't care about float equal.
  • Loading branch information
kou committed Apr 19, 2015
1 parent d18c283 commit fe591af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Expand Up @@ -141,6 +141,7 @@ AC_DEFUN([REMOVE_CXXFLAG], [
TEST_CFLAGS=""
TEST_CXXFLAGS=""
NO_STRICT_ALIASING_CFLAGS=""
NO_FLOAT_EQUAL_CFLAGS=""
if test "$GCC" = "yes"; then
CHECK_BUILD_FLAG([-Wall])
CHECK_BUILD_FLAG([-Wextra])
Expand All @@ -160,6 +161,9 @@ if test "$GCC" = "yes"; then
fi
CHECK_BUILD_FLAG([-Wdisabled-optimization])
CHECK_BUILD_FLAG([-Wfloat-equal])
if test "x$check_cflag" = "xyes"; then
NO_FLOAT_EQUAL_CFLAGS="-Wno-float-equal"
fi
CHECK_BUILD_FLAG([-Wpointer-arith])
CHECK_CFLAG([-Wbad-function-cast])
if test "$CLANG" = "no"; then
Expand Down Expand Up @@ -192,6 +196,7 @@ fi
AC_SUBST(TEST_CFLAGS)
AC_SUBST(TEST_CXXFLAGS)
AC_SUBST(NO_STRICT_ALIASING_CFLAGS)
AC_SUBST(NO_FLOAT_EQUAL_CFLAGS)

AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
Expand Down
2 changes: 2 additions & 0 deletions vendor/mruby/Makefile.am
Expand Up @@ -9,6 +9,8 @@ DEFAULT_INCLUDES = \
-Imruby-io/include \
-I$(srcdir)/mruby-io/include

CFLAGS += $(NO_FLOAT_EQUAL_CFLAGS)

if WITH_MRUBY
noinst_LTLIBRARIES = libmruby.la

Expand Down

0 comments on commit fe591af

Please sign in to comment.