From 49445ccb891c6eb85b1d644c975c1b092ef00e43 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 13 Feb 2023 14:54:24 +0200 Subject: Use -O3 for Emscripten, seems to work Change-Id: I7effd75355ff81e6d4f85b1c6047c7656bfbb915 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147006 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'solenv/gbuild') diff --git a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk index 4ae925daf5d1..a69539b65403 100644 --- a/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk +++ b/solenv/gbuild/platform/EMSCRIPTEN_INTEL_GCC.mk @@ -71,6 +71,8 @@ ifeq ($(HAVE_EXTERNAL_DWARF),TRUE) gb_DEBUGINFO_FLAGS += -gseparate-dwarf endif +gb_COMPILEROPTFLAGS := -O3 + # We need at least code elimination, otherwise linking OOMs even with 64GB. # So we "fake" -Og support to mean -O1 for Emscripten and always enable it for debug in configure. gb_COMPILERDEBUGOPTFLAGS := -O1 -- cgit