diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-11-13 18:50:01 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-11-21 16:30:02 +0000 |
commit | 55181670c621dfd79d0bb05738cb5b59665e6bd7 (patch) | |
tree | 5514c1832355cc3612b83c05be343e0a687a42c7 /configure.pri | |
parent | c0ac4d0673a25d52ad7d315b6e96f75bbe8be14c (diff) | |
download | qtwebengine-55181670c621dfd79d0bb05738cb5b59665e6bd7.tar.gz |
Add check for thumb instruction set
We currently require thumb instruction set on arm to build internal
ffmpeg.
Task-number: QTBUG-71772
Change-Id: I43ed152a51f0dea97b800c868eb13a4e5e8e077e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri index 254755743..26c57ce61 100644 --- a/configure.pri +++ b/configure.pri @@ -294,3 +294,21 @@ defineTest(qtConfTest_isWindowsHostCompiler64) { qtLog("Required 64-bit cross-building or native toolchain was not detected.") return(false) } + +# Fixme QTBUG-71772 +defineTest(qtConfTest_hasThumbFlag) { + FLAG = $$extractCFlag("-mthumb") + !isEmpty(FLAG): return(true) + FLAG = $$extractCFlag("-marm") + !isEmpty(FLAG): return(false) + + MARCH = $$extractCFlag("-march=.*") + MARMV = $$replace(MARCH, "armv",) + !isEmpty(MARMV) { + MARMV = $$split(MARMV,) + MARMV = $$member(MARMV, 0) + } + if (isEmpty(MARMV) | lessThan(MARMV, 7)): return(false) + # no flag assume mthumb + return(true) +} |