提交 3f38c113 编写于 作者: B Behdad Esfahbod

Don't use -mstructure-size-boundary=8 on clang arm

As in building for Android / iPhone.  Only set it if
struct{char} alignment is not 1.

NOT tested on an actual Arm architecture.  Guess we'll know
when this makes it to people's build bots.
上级 0ff74b09
...@@ -72,6 +72,7 @@ AC_CHECK_HEADERS(unistd.h sys/mman.h) ...@@ -72,6 +72,7 @@ AC_CHECK_HEADERS(unistd.h sys/mman.h)
# Compiler flags # Compiler flags
AC_CANONICAL_HOST AC_CANONICAL_HOST
AC_CHECK_ALIGNOF([struct{char}])
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
# Make symbols link locally # Make symbols link locally
...@@ -94,8 +95,10 @@ if test "x$GCC" = "xyes"; then ...@@ -94,8 +95,10 @@ if test "x$GCC" = "xyes"; then
case "$host" in case "$host" in
arm-*-*) arm-*-*)
# Request byte alignment on arm if test "x$ac_cv_alignof_struct_char_" != x1; then
# Request byte alignment
CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8" CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
fi
;; ;;
esac esac
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册