mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Merge bitcoin/bitcoin#33850: depends: drop qtbase_avoid_native_float16 qt patch
169f93d2acdepends: drop qtbase_avoid_native_float16 qt patch (fanquake) Pull request description: There is no-longer a minimum required / max supported libgcc version, after https://github.com/bitcoin/bitcoin/pull/33181. ACKs for top commit: laanwj: Code review ACK169f93d2achebasto: ACK169f93d2ac. Tree-SHA512: 1cb3639742d1466ae4355f99bea08afd1dab89a03b10aa7c0e04c8ec18e7654913028155badbfa67fdfa39764f6e04e7a0b5d007b0b3af8606425641db01f1e3
This commit is contained in:
@@ -12,7 +12,6 @@ $(package)_freebsd_dependencies := $($(package)_linux_dependencies)
|
||||
$(package)_patches_path := $(qt_details_patches_path)
|
||||
$(package)_patches := dont_hardcode_pwd.patch
|
||||
$(package)_patches += qtbase-moc-ignore-gcc-macro.patch
|
||||
$(package)_patches += qtbase_avoid_native_float16.patch
|
||||
$(package)_patches += qtbase_avoid_qmain.patch
|
||||
$(package)_patches += qtbase_platformsupport.patch
|
||||
$(package)_patches += qtbase_plugins_cocoa.patch
|
||||
@@ -257,7 +256,6 @@ endif
|
||||
define $(package)_preprocess_cmds
|
||||
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtbase_avoid_native_float16.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtbase_avoid_qmain.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtbase_platformsupport.patch && \
|
||||
patch -p1 -i $($(package)_patch_dir)/qtbase_plugins_cocoa.patch && \
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
Avoid using native float16 types in Qt's qfloat16
|
||||
|
||||
Using native float16 types may introduce compatibility issues
|
||||
in release binaries for Linux platforms.
|
||||
|
||||
See: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=e42d2d2a20f2bb59928bc895ec9f46503a1b5c73
|
||||
|
||||
This patch can be dropped once the minimum required libgcc version
|
||||
is updated to 12.x or newer.
|
||||
|
||||
|
||||
--- a/qtbase/src/corelib/global/qtypes.h
|
||||
+++ b/qtbase/src/corelib/global/qtypes.h
|
||||
@@ -258,23 +258,8 @@ using qsizetype = QIntegerForSizeof<std::size_t>::Signed;
|
||||
|
||||
// Define a native float16 type
|
||||
namespace QtPrivate {
|
||||
-#if defined(__STDCPP_FLOAT16_T__)
|
||||
-# define QFLOAT16_IS_NATIVE 1
|
||||
-using NativeFloat16Type = std::float16_t;
|
||||
-#elif defined(Q_CC_CLANG) && defined(__FLT16_MAX__) && 0
|
||||
-// disabled due to https://github.com/llvm/llvm-project/issues/56963
|
||||
-# define QFLOAT16_IS_NATIVE 1
|
||||
-using NativeFloat16Type = decltype(__FLT16_MAX__);
|
||||
-#elif defined(Q_CC_GNU_ONLY) && defined(__FLT16_MAX__) && defined(__ARM_FP16_FORMAT_IEEE)
|
||||
-# define QFLOAT16_IS_NATIVE 1
|
||||
-using NativeFloat16Type = __fp16;
|
||||
-#elif defined(Q_CC_GNU_ONLY) && defined(__FLT16_MAX__) && defined(__SSE2__)
|
||||
-# define QFLOAT16_IS_NATIVE 1
|
||||
-using NativeFloat16Type = _Float16;
|
||||
-#else
|
||||
# define QFLOAT16_IS_NATIVE 0
|
||||
using NativeFloat16Type = void;
|
||||
-#endif
|
||||
} // QtPrivate
|
||||
|
||||
#endif // __cplusplus
|
||||
Reference in New Issue
Block a user