summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-03-28 10:17:22 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-04-04 15:12:18 +0000
commit09a34a44ff1fed7f27d4f129ddda01c99f9f82ef (patch)
tree881ff46c68742d8e057b863657adb74efaa7f12e
parentc554f3348cd0baea8221e668d41132cea0833a8a (diff)
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 <kai.koehne@qt.io>
-rw-r--r--src/core/gyp_run.pro2
1 files changed, 1 insertions, 1 deletions
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