Fix Clang build: it does not have __attribute__((optimize(x)))
Change-Id: I84e363d735b443cb9beefffd14b8b5f3885b84d6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>bb10
parent
ac9103fd85
commit
bd52bff35d
|
|
@ -1206,7 +1206,7 @@ void QMessagePattern::setPattern(const QString &pattern)
|
|||
// make sure the function has "Message" in the name so the function is removed
|
||||
|
||||
#if ((defined(Q_CC_GNU) && defined(QT_COMPILER_SUPPORTS_SIMD_ALWAYS)) || QT_HAS_ATTRIBUTE(optimize)) \
|
||||
&& !defined(Q_CC_INTEL)
|
||||
&& !defined(Q_CC_INTEL) && !defined(Q_CC_CLANG)
|
||||
// force skipping the frame pointer, to save the backtrace() function some work
|
||||
__attribute__((optimize("omit-frame-pointer")))
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue