forked from qt-creator/qt-creator
Clang: substitute __float128 with short instead of void
There is an argument of this type in std_abs.h. void argument is invalid. Replacing with float, double or long double causes an error in type_traits, which has template specializations for __is_floating_point_helper for all these types. Change-Id: Ife95fa992cbf9684bc67a2098d6609a9a925d015 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
1df1745c63
commit
b89888ca9d
@@ -392,7 +392,7 @@ void CompilerOptionsBuilder::addDefineFloat128ForMingw()
|
||||
// TODO: Remove once this is fixed in clang >= 3.9.
|
||||
// https://llvm.org/bugs/show_bug.cgi?id=30685
|
||||
if (m_projectPart.toolchainType == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID)
|
||||
addDefine("#define __float128 void");
|
||||
addDefine("#define __float128 short");
|
||||
}
|
||||
|
||||
QString CompilerOptionsBuilder::includeDirOption() const
|
||||
|
||||
Reference in New Issue
Block a user