2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 02:05:12 +01:00

Qt 5.7 -std=c++11 #1798

This commit is contained in:
Thomas Nagy 2016-08-18 22:21:35 +02:00
parent 26fc0cfced
commit adea933f1a
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -473,7 +473,7 @@ def configure(self):
# Qt5 may be compiled with '-reduce-relocations' which requires dependent programs to have -fPIE or -fPIC?
frag = '#include <QApplication>\nint main(int argc, char **argv) {return 0;}\n'
uses = 'QT5CORE QT5WIDGETS QT5GUI'
for flag in [[], '-fPIE', '-fPIC']:
for flag in [[], '-fPIE', '-fPIC', ['-std=c++11', '-fPIE'], ['-std=c++11', '-fPIC']]:
msg = 'See if Qt files compile '
if flag:
msg += 'with %s' % flag