external/liborcus/ExternalProject_liborcus.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 26603bc9ef0116ed31c510dab82b69d3666447b5
Author:     Jan-Marek Glogowski <glo...@fbihome.de>
AuthorDate: Thu Feb 10 09:38:40 2022 +0100
Commit:     Jan-Marek Glogowski <glo...@fbihome.de>
CommitDate: Sun Feb 20 20:43:57 2022 +0100

    WASM fix orcus native exception handling (NEH)
    
    While this fixes the build with --enable-wasm-exceptions, the
    resulting binary generates an "indirect call signature mismatch",
    which doesn't happen with the non-NEH build.
    
    The Chrome DWARF backtrace points to CallbackTaskScheduling().
    Further debugging reveals, it's actually the UpdateMinPeriod
    call for the "desktop::Desktop m_firstRunTimer" Timer.
    Disturbingly the debug dynamic_cast<Timer> at the start of the
    job loop fails, and the fallback generic job output is
    chosen, AKA:
    
    info:vcl.schedule: 6516 0x3871618  i: 0 a: 1 p: 1 \
        desktop::Desktop m_firstRunTimer
    
    m_firstRunTimer is a Timer member in the Desktop class, so this
    looks like some memory corruption or toolchain problem.
    
    The size difference is more then 10% and it's supposed to be
    faster too. FWIW the optimized link time is still high and needs
    32GB+ memory compared to the 13GB non-optimized memory usage.
    
    Change-Id: I06d37ecece09000fd3b72a73e7bf40f0b0f61457
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130216
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glo...@fbihome.de>

diff --git a/external/liborcus/ExternalProject_liborcus.mk 
b/external/liborcus/ExternalProject_liborcus.mk
index 638271a5a398..d067b741146a 100644
--- a/external/liborcus/ExternalProject_liborcus.mk
+++ b/external/liborcus/ExternalProject_liborcus.mk
@@ -91,8 +91,8 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
        $(call gb_ExternalProject_run,build,\
                $(if $(liborcus_LIBS),LIBS='$(liborcus_LIBS)') \
                $(if $(liborcus_CXXFLAGS),CXXFLAGS='$(liborcus_CXXFLAGS)') \
-               $(if $(liborcus_CPPFLAGS),CPPFLAGS='$(liborcus_CPPFLAGS) 
$(gb_EMSCRIPTEN_CPPFLAGS)') \
-               $(if $(liborcus_LDFLAGS),LDFLAGS='$(liborcus_LDFLAGS)') \
+               $(if $(liborcus_CPPFLAGS),CPPFLAGS='$(liborcus_CPPFLAGS) 
$(gb_EMSCRIPTEN_CPPFLAGS) $(gb_EMSCRIPTEN_EXCEPT)') \
+               $(if $(liborcus_LDFLAGS),LDFLAGS='$(liborcus_LDFLAGS) 
$(gb_EMSCRIPTEN_EXCEPT)') \
                MDDS_CFLAGS='$(MDDS_CFLAGS)' \
                MDDS_LIBS=' ' \
                MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \

Reply via email to