ソースを参照

yaml-cpp: push gcc 15 fix (#7086)

Saikari 3 ヶ月 前
コミット
c7d4f824f2

+ 10 - 0
packages/y/yaml-cpp/patches/missing-gcc15-header.diff

@@ -0,0 +1,10 @@
+diff --git a/src/emitterutils.cpp b/src/emitterutils.cpp
+index 6cdf6de..dbd2590 100644
+--- a/src/emitterutils.cpp
++++ b/src/emitterutils.cpp
+@@ -1,4 +1,5 @@
+ #include <algorithm>
++#include <cstdint>
+ #include <iomanip>
+ #include <sstream>
+ 

+ 2 - 0
packages/y/yaml-cpp/xmake.lua

@@ -11,6 +11,8 @@ package("yaml-cpp")
     add_versions("0.7.0", "43e6a9fcb146ad871515f0d0873947e5d497a1c9c60c58cb102a97b47208b7c3")
     add_versions("0.8.0", "fbe74bbdcee21d656715688706da3c8becfd946d92cd44705cc6098bb23b3a16")
 
+    add_patches("0.8.0", path.join(os.scriptdir(), "patches", "missing-gcc15-header.diff"), "77187131279f2ef470f473b3d4cf88a3e9075d1650f0abe8a791b260292dd86e")
+
     add_deps("cmake")
 
     on_load("windows", "mingw", function (package)