Xcode 26.5 无法编译cocos3.8.8的引擎

使用cocos3.8.8 build构建IOS工程以后。 xcode26.5无法编译成功

报错文件:enoki/half.h

template<> struct is_floating_pointenoki::half : true_type { };
template<> struct is_arithmeticenoki::half : true_type { };
template<> struct is_signedenoki::half : true_type { };

报错内容:
‘is_floating_point’ cannot be specialized: Users are not allowed to specialize this standard library entity
‘is_arithmetic’ cannot be specialized: Users are not allowed to specialize this standard library entity
‘is_signed’ cannot be specialized: Users are not allowed to specialize this standard library entity

希望可以尽快做一下兼容,目前xcode26.3是正常的

你让AI你改这几行就完事了。

你们有改吗? 能不能发一下? 我这边找AI改了好几次 每次都不对?

修改native/external/sources/enoki/half.h

diff --git a/sources/enoki/half.h b/sources/enoki/half.h
index fd2fbb66..f9601b8e 100644
--- a/sources/enoki/half.h
+++ b/sources/enoki/half.h
@@ -19,11 +19,23 @@ NAMESPACE_BEGIN(enoki)
 struct half;
 NAMESPACE_END(enoki)
 
-NAMESPACE_BEGIN(std)
-template<> struct is_floating_point<enoki::half> : true_type { };
-template<> struct is_arithmetic<enoki::half> : true_type { };
-template<> struct is_signed<enoki::half> : true_type { };
-NAMESPACE_END(std)
+template<typename T>
+struct is_floating_point : std::integral_constant<bool,std::is_floating_point<T>::value> {
+};
+
+template<typename T>
+struct is_arithmetic : std::integral_constant<bool,std::is_arithmetic<T>::value> {
+};
+
+template<typename T>
+struct is_signed : std::integral_constant<bool,std::is_signed<T>::value> {
+};
+
+//NAMESPACE_BEGIN(std)
+template<> struct is_floating_point<enoki::half> : std::true_type { };
+template<> struct is_arithmetic<enoki::half> : std::true_type { };
+template<> struct is_signed<enoki::half> : std::true_type { };
+//NAMESPACE_END(std)
 
 NAMESPACE_BEGIN(enoki)
 struct half {