mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Merge pull request #1816 from fedepell/qt5-warncomp
If compiler_cxx was not configured before qt5 then qt5 will try to build applications with an empty compiler which gives very strange errors in the config log
This commit is contained in:
commit
3286beb4ad
@ -497,6 +497,9 @@ def configure(self):
|
||||
if not has_xml:
|
||||
Logs.error('No xml.sax support was found, rcc dependencies will be incomplete!')
|
||||
|
||||
if 'COMPILER_CXX' not in self.env:
|
||||
self.fatal('No CXX compiler defined: did you forget to configure compiler_cxx first?')
|
||||
|
||||
# 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'
|
||||
|
Loading…
Reference in New Issue
Block a user