WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit 7908a261 authored by John Zhang's avatar John Zhang
Browse files

fix: supply include file so that RPython C backend can compile correctly

parent d78ce170
......@@ -21,8 +21,11 @@ def get_callback(libcb_path):
libcb = py.path.local(libcb_path)
libext = '.dylib' if sys.platform == 'darwin' else '.so'
libname = libcb.basename[3:libcb.basename.index(libext)]
eci = rffi.ExternalCompilationInfo(libraries=[libname], library_dirs=[libcb.dirname])
callback_dir = py.path.local(__file__).join('..', '..')
eci = rffi.ExternalCompilationInfo(libraries=[libname],
def external(name, args, result, compilation_info=eci, **kwds):
return rffi.llexternal(name, args, result,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment