Spaces:
Paused
Paused
Download venv/lib/python3.13/site-packages/llvmlite/binding/linker.py from Jacanteros/mi_transcriptor: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/spaces/Jacanteros/mi_transcriptor/resolve/main/venv/lib/python3.13/site-packages/llvmlite/binding/linker.py
- Command line
-
hf download hf://spaces/Jacanteros/mi_transcriptor/venv/lib/python3.13/site-packages/llvmlite/binding/linker.py
-
curl -L -o linker.py https://huggingface.co/spaces/Jacanteros/mi_transcriptor/resolve/main/venv/lib/python3.13/site-packages/llvmlite/binding/linker.py
489 Bytes
| from ctypes import c_int, c_char_p, POINTER | |
| from llvmlite.binding import ffi | |
| def link_modules(dst, src): | |
| with ffi.OutputString() as outerr: | |
| err = ffi.lib.LLVMPY_LinkModules(dst, src, outerr) | |
| # The underlying module was destroyed | |
| src.detach() | |
| if err: | |
| raise RuntimeError(str(outerr)) | |
| ffi.lib.LLVMPY_LinkModules.argtypes = [ | |
| ffi.LLVMModuleRef, | |
| ffi.LLVMModuleRef, | |
| POINTER(c_char_p), | |
| ] | |
| ffi.lib.LLVMPY_LinkModules.restype = c_int | |