diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-06 14:35:18 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2016-01-07 10:23:10 +0000 |
commit | ac47b1520ce9d60622f28c0be6c22aa1ae1bb15e (patch) | |
tree | 98a8bd3fbc821e57af08c6f8e4678471722bb3e5 /qtdeclarative.pro | |
parent | 893067a47458ffd686a419b9dd6288b6ee2667fa (diff) |
Check for python executable.
When building QtQml without having python in PATH the build system will
generate an empty RegExpJitTables.h. The linking will then fail because
of unresolved external symbols.
Task-number: QTBUG-47193
Change-Id: I39abf44bf30abfb4a3209713a1fb07faff7ead63
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'qtdeclarative.pro')
-rw-r--r-- | qtdeclarative.pro | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qtdeclarative.pro b/qtdeclarative.pro index 9ecfad6f75..0e746c3c65 100644 --- a/qtdeclarative.pro +++ b/qtdeclarative.pro @@ -1,3 +1,10 @@ CONFIG += tests_need_tools examples_need_tools load(qt_parts) +!python_available { + py_out = $$system('python -c "print(1)"') + !equals(py_out, 1): error("Building QtQml requires Python version 2.") + tmp = python_available + CONFIG += $$tmp + cache(CONFIG, add, tmp) +} |