summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2015-09-22 15:23:44 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2015-09-30 15:40:03 +0000
commit0310d0d71287f78339c47daaff7598a30d2f08f8 (patch)
tree16920f13aa3f0cbb34565dabd4001a0099ae43b5
parent22816c6fb26ae869596a3ab5b99f082b5d3ff2da (diff)
downloadqtwebkit-0310d0d71287f78339c47daaff7598a30d2f08f8.tar.gz
Added workaround for use_system_malloc to omit WTF_ prefix in macro name.
Unlike other USE_* features, USE_SYSTEM_MALLOC is not checked with USE() macro (which expects WTF_ prefix), so passing WTF_USE_SYSTEM_MALLOC into DEFINES just does not work. Change-Id: I8e1ec29124ee77d2d5ea2e8ad44bc113091edcd9 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
-rw-r--r--Tools/qmake/mkspecs/features/functions.prf4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/qmake/mkspecs/features/functions.prf b/Tools/qmake/mkspecs/features/functions.prf
index 7b3ab01c4..9602c2051 100644
--- a/Tools/qmake/mkspecs/features/functions.prf
+++ b/Tools/qmake/mkspecs/features/functions.prf
@@ -351,6 +351,10 @@ defineReplace(configDefines) {
plugin_architecture: defines += $$upper($$config)=1
next()
}
+ equals(config, "use_system_malloc") {
+ use: defines += $$upper($$config)=1
+ next()
+ }
match = $$find(config, "^use_")
!isEmpty(match) {
use: defines += WTF_$$upper($$config)=1