mirror of
https://github.com/boostorg/move.git
synced 2025-07-31 21:04:27 +02:00
Disable forceinline with Clang, see https://github.com/llvm/llvm-project/issues/62202
This commit is contained in:
@@ -61,9 +61,11 @@
|
||||
#elif defined(BOOST_MSVC) && (_MSC_VER < 1900 || defined(_DEBUG))
|
||||
//"__forceinline" and MSVC seems to have some bugs in old versions and in debug mode
|
||||
#define BOOST_MOVE_FORCEINLINE inline
|
||||
#elif defined(BOOST_GCC) && (__GNUC__ <= 5)
|
||||
#elif defined(BOOST_CLANG) || (defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__)))
|
||||
//Older GCCs have problems with forceinline
|
||||
#define BOOST_MOVE_FORCEINLINE inline
|
||||
//Clang can have code bloat issues with forceinline, see
|
||||
//https://lists.boost.org/boost-users/2023/04/91445.php and
|
||||
//https://github.com/llvm/llvm-project/issues/62202
|
||||
#else
|
||||
#define BOOST_MOVE_FORCEINLINE BOOST_FORCEINLINE
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user