From 09a34a44ff1fed7f27d4f129ddda01c99f9f82ef Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 28 Mar 2017 10:17:22 +0200 Subject: Also support reduce_binary_size on Windows GYP uses a different flag to control optimization flags on windows. Change-Id: I3db8c738ccc40008be6971c9e38de26932cad030 Reviewed-by: Kai Koehne --- src/core/gyp_run.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro index dc22d14bf..f021d0724 100644 --- a/src/core/gyp_run.pro +++ b/src/core/gyp_run.pro @@ -118,7 +118,7 @@ contains(WEBENGINE_CONFIG, use_appstore_compliant_code): GYP_CONFIG += appstore_ # Compiling with -Os makes a huge difference in binary size, and the unwind tables is another big part, # but the latter are necessary for useful debug binaries. -contains(WEBENGINE_CONFIG, reduce_binary_size): GYP_CONFIG += release_optimize=s debug_optimize=s release_unwind_tables=0 +contains(WEBENGINE_CONFIG, reduce_binary_size): GYP_CONFIG += release_optimize=s debug_optimize=s win_release_Optimization=1 release_unwind_tables=0 !contains(WEBENGINE_CONFIG, use_spellchecker): { GYP_CONFIG += enable_spellcheck=0 -- cgit v1.2.3