Explorar o código

elfio: upgrade to 3.12, fix stdint include in elf_types.hpp. (#8371)

RedbeanW hai 2 meses
pai
achega
19ed38f320
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      packages/e/elfio/xmake.lua

+ 4 - 0
packages/e/elfio/xmake.lua

@@ -6,11 +6,15 @@ package("elfio")
 
     add_urls("https://github.com/serge1/ELFIO/archive/refs/tags/Release_$(version).tar.gz")
     add_versions("3.11", "c896b1c41ac19348b040e4adbd1bd14950c4c216da97f900dff726eb0adf20b2")
+    add_versions("3.12", "e4ebc9ce3d6916461bc3e7765bb45e6210f0a9b93978bf91e59b05388c024489")
 
     add_deps("cmake")
 
     on_install(function (package)
         local configs = {"-DELFIO_BUILD_TESTS=OFF", "-DELFIO_BUILD_EXAMPLES=OFF"}
+        if package:version():le("3.12") then
+            io.replace("elfio/elf_types.hpp", "#define ELFTYPES_H", "#define ELFTYPES_H\n\n#include <stdint.h>", {plain = true})
+        end
         import("package.tools.cmake").install(package, configs)
     end)