diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-10 15:28:56 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-13 10:06:48 +0000 |
commit | cd475d5727becd6ec4e7605d335721355e049354 (patch) | |
tree | e2519edbc9b03a052511711bab5b945b03871114 | |
parent | 0d4dd0ad65ea01dd6236fe4414b766624476991c (diff) |
Handle reduce_binary_size for GNv5.9.0-alpha1
Switches to -Os optimizations.
Change-Id: Ia40380dce5f908d64c5d411687d42d13728c85cd
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r-- | src/core/config/common.pri | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/config/common.pri b/src/core/config/common.pri index 7307c4a46..0246a1cf9 100644 --- a/src/core/config/common.pri +++ b/src/core/config/common.pri @@ -41,6 +41,9 @@ use?(gn) { gn_args += enable_webrtc=false } + # Compiling with -Os makes a huge difference in binary size + contains(WEBENGINE_CONFIG, reduce_binary_size): gn_args += optimize_for_size=true + } else { # Trigger Qt-specific build conditions. GYP_CONFIG += use_qt=1 |