Skip to content

Commit

Permalink
ci+fix: comment out Context.set_yield_callback method, which leads to…
Browse files Browse the repository at this point in the history
… error compilation on Windows platform
  • Loading branch information
Ziqi-Yang committed Sep 8, 2024
1 parent 4400091 commit 3ac9435
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/llvm/Core/miscClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 3ac9435

Please sign in to comment.