fix clang check when clang++ is called c++ (#1924)
* fix clang check when clang++ is called c++ * fix syntax
This commit is contained in:
+2
-1
@@ -33,7 +33,8 @@ win32-msvc* {
|
||||
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Werror=return-type
|
||||
|
||||
equals(QMAKE_CXX, "clang++") {
|
||||
CXX_VERSION = $$system($$QMAKE_CXX --version)
|
||||
contains(CXX_VERSION, "clang") {
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedef
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-private-field
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user