mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 982693 - use -fno-integrated-as (if available) with clang when building vp8_asm_enc_offsets.c r=tterriberry
This commit is contained in:
parent
e230435e59
commit
e4f28bd690
19
configure.in
19
configure.in
@ -7798,6 +7798,25 @@ AC_SUBST(PROFILE_GEN_LDFLAGS)
|
|||||||
AC_SUBST(PROFILE_USE_CFLAGS)
|
AC_SUBST(PROFILE_USE_CFLAGS)
|
||||||
AC_SUBST(PROFILE_USE_LDFLAGS)
|
AC_SUBST(PROFILE_USE_LDFLAGS)
|
||||||
|
|
||||||
|
dnl =============================================
|
||||||
|
dnl Support for -fno-integrated-as (recent clang)
|
||||||
|
dnl =============================================
|
||||||
|
dnl Under clang 3.4+, use -fno-integrated-as to
|
||||||
|
dnl build libvpx's vp8_asm_enc_offsets.c
|
||||||
|
|
||||||
|
_SAVE_CFLAGS="$CFLAGS"
|
||||||
|
CFLAGS="$CFLAGS -fno-integrated-as"
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether C compiler supports -fno-integrated-as])
|
||||||
|
AC_TRY_COMPILE([], [return 0;],
|
||||||
|
[ NO_INTEGRATED_AS_CFLAGS="-fno-integrated-as"
|
||||||
|
result="yes" ], result="no")
|
||||||
|
AC_MSG_RESULT([$result])
|
||||||
|
|
||||||
|
CFLAGS="$_SAVE_CFLAGS"
|
||||||
|
|
||||||
|
AC_SUBST(NO_INTEGRATED_AS_CFLAGS)
|
||||||
|
|
||||||
fi # ! SKIP_COMPILER_CHECKS
|
fi # ! SKIP_COMPILER_CHECKS
|
||||||
|
|
||||||
AC_DEFINE(CPP_THROW_NEW, [throw()])
|
AC_DEFINE(CPP_THROW_NEW, [throw()])
|
||||||
|
@ -75,7 +75,7 @@ vp8_asm_enc_offsets.s: CFLAGS := -DINLINE_ASM
|
|||||||
|
|
||||||
vp8_asm_enc_offsets.s: $(srcdir)/vp8/encoder/vp8_asm_enc_offsets.c
|
vp8_asm_enc_offsets.s: $(srcdir)/vp8/encoder/vp8_asm_enc_offsets.c
|
||||||
$(REPORT_BUILD)
|
$(REPORT_BUILD)
|
||||||
$(CC) -S $(COMPILE_CFLAGS) $(TARGET_LOCAL_INCLUDES) $(_VPATH_SRCS)
|
$(CC) -S $(COMPILE_CFLAGS) $(NO_INTEGRATED_AS_CFLAGS) $(TARGET_LOCAL_INCLUDES) $(_VPATH_SRCS)
|
||||||
|
|
||||||
vp8_asm_enc_offsets.asm: vp8_asm_enc_offsets.s
|
vp8_asm_enc_offsets.asm: vp8_asm_enc_offsets.s
|
||||||
grep $(OFFSET_PATTERN) $< | sed -e 's/[$$\#]//g' \
|
grep $(OFFSET_PATTERN) $< | sed -e 's/[$$\#]//g' \
|
||||||
|
Loading…
Reference in New Issue
Block a user