summaryrefslogtreecommitdiff
path: root/mkspecs/features
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-11-13 15:15:25 +0100
committerMichal Klocek <michal.klocek@qt.io>2018-11-21 16:29:47 +0000
commitc0ac4d0673a25d52ad7d315b6e96f75bbe8be14c (patch)
tree70c80da69fb6a82bed282b9851353bb975fa75ca /mkspecs/features
parenta5b82567f8f29885aa62044b920ab669f3726047 (diff)
downloadqtwebengine-c0ac4d0673a25d52ad7d315b6e96f75bbe8be14c.tar.gz
Fix running thumb vs arm instruction set on yocto
On yocto CC/CXX export contains flags like -marm, -mthumb see https://lists.yoctoproject.org/pipermail/poky/2018-September/011497.html Fix builds for webengine and check also QMAKE_CC for flags, otherwise build ends up passing -marm and -mthumb flags at the same time. Change-Id: I76feb0eaf3bed8a6c3552db1bbf1a0809f03110a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/functions.prf4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf
index c9bd65b03..f433de3b2 100644
--- a/mkspecs/features/functions.prf
+++ b/mkspecs/features/functions.prf
@@ -14,7 +14,9 @@ defineReplace(extractCFlag) {
CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
OPTION = $$find(CFLAGS, $$1)
OPTION = $$split(OPTION, =)
- return ($$member(OPTION, 1))
+ PARAM = $$member(OPTION, 1)
+ !isEmpty(PARAM): return ($$PARAM)
+ return ($$OPTION)
}
defineReplace(which) {