From 3ac943598a473bdc985e47853b295da269ffefc7 Mon Sep 17 00:00:00 2001 From: meowking Date: Sun, 8 Sep 2024 19:03:01 +0800 Subject: [PATCH] ci+fix: comment out Context.set_yield_callback method, which leads to error compilation on Windows platform --- src/llvm/Core/miscClasses.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/llvm/Core/miscClasses.cpp b/src/llvm/Core/miscClasses.cpp index 1e14aab..5c704b6 100644 --- a/src/llvm/Core/miscClasses.cpp +++ b/src/llvm/Core/miscClasses.cpp @@ -1303,12 +1303,12 @@ void bindOtherClasses(nb::module_ &m) { return fn; }, "Get the diagnostic handler of this context.") - .def("set_yield_callback", // FIXME - [](PymContext &c, LLVMYieldCallback callback, void *opaqueHandle){ - return LLVMContextSetYieldCallback(c.get(), callback, opaqueHandle); - }, - "callback"_a, "opaque_handle"_a, - "Set the yield callback function for this context.") + // .def("set_yield_callback", // FIXME cannot compile on WINDOWS build + // [](PymContext &c, LLVMYieldCallback callback, void *opaqueHandle){ + // return LLVMContextSetYieldCallback(c.get(), callback, opaqueHandle); + // }, + // "callback"_a, "opaque_handle"_a, + // "Set the yield callback function for this context.") .def("parse_ir", [](PymContext &self, PymMemoryBuffer &memBuf) { auto res = parseIR(self.get(), memBuf.get());