From 44eb9538ac9bdbaa9eddb516fb6f295f22a535c1 Mon Sep 17 00:00:00 2001 From: star9029 Date: Tue, 26 Nov 2024 22:29:54 +0800 Subject: [PATCH] raw_pdb: fix gitref --- packages/r/raw_pdb/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/r/raw_pdb/xmake.lua b/packages/r/raw_pdb/xmake.lua index a09113a09..af97362af 100644 --- a/packages/r/raw_pdb/xmake.lua +++ b/packages/r/raw_pdb/xmake.lua @@ -18,7 +18,7 @@ package("raw_pdb") table.insert(configs, "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON") end - if package:version():ge("2024.08.27") then + if package:gitref() or package:version():ge("2024.08.27") then io.replace("src/CMakeLists.txt", "if (UNIX)", "if(1)", {plain = true}) import("package.tools.cmake").install(package, configs) if is_host("windows") then @@ -44,7 +44,7 @@ package("raw_pdb") end) on_test(function (package) - if package:version():ge("2024.08.27") then + if package:gitref() or package:version():ge("2024.08.27") then assert(package:has_cxxfuncs("PDB::ValidateFile(0, 0)", {includes = {"cstddef", "raw_pdb/PDB.h"}})) else assert(package:has_cxxfuncs("PDB::ValidateFile(0)", {includes = "PDB.h"}))