[vlc-devel] [PATCH] contrib: harfbuzz: Pass -mbig-obj to the assembler
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Mar 30 17:08:54 CEST 2020
On Mon, Mar 30, 2020, at 4:11 PM, Steve Lhomme wrote:
> On 2020-03-30 15:35, Hugo Beauzée-Luyssen wrote:
> > Which fixes non-optimized win64 builds
> > ---
> > contrib/src/harfbuzz/rules.mak | 8 +++++++-
> > 1 file changed, 7 insertions(+), 1 deletion(-)
> >
> > diff --git a/contrib/src/harfbuzz/rules.mak b/contrib/src/harfbuzz/rules.mak
> > index 374a4ff1da..aecbbe9214 100644
> > --- a/contrib/src/harfbuzz/rules.mak
> > +++ b/contrib/src/harfbuzz/rules.mak
> > @@ -25,8 +25,14 @@ harfbuzz: harfbuzz-$(HARFBUZZ_VERSION).tar.xz .sum-harfbuzz
> >
> > DEPS_harfbuzz = freetype2 $(DEPS_freetype2)
> >
> > +HARFBUZZ_CXXFLAGS := $(CXXFLAGS)
> > +ifdef HAVE_WIN64
> > +HARFBUZZ_CXXFLAGS := -Wa,-mbig-obj $(HARFBUZZ_CXXFLAGS)
>
> Is this understood by all compilers/toolchains ? If not it may be better
> to add the flag via CMake which will check it's supported.
>
My understanding is that it is added by default (and therefor understood) by llvm, and it's definitely not handled by msvc.
I can try to work something out by patching harfbuzz's CMakeLists.txt
--
Hugo Beauzée-Luyssen
hugo at beauzee.fr
More information about the vlc-devel
mailing list