diff options
author | 2021-02-05 17:09:57 +0200 | |
---|---|---|
committer | 2021-02-05 17:09:57 +0200 | |
commit | 60f481a54861a7ddb1acaa9fc78883df833a178f (patch) | |
tree | b586b2a0496074ac825d3640ca866fcfa03d3946 /lib_pypy/pypy_tools | |
parent | add new file (diff) | |
download | pypy-60f481a54861a7ddb1acaa9fc78883df833a178f.tar.gz pypy-60f481a54861a7ddb1acaa9fc78883df833a178f.tar.bz2 pypy-60f481a54861a7ddb1acaa9fc78883df833a178f.zip |
move file to correct place
Diffstat (limited to 'lib_pypy/pypy_tools')
-rw-r--r-- | lib_pypy/pypy_tools/_ctypes_build.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib_pypy/pypy_tools/_ctypes_build.py b/lib_pypy/pypy_tools/_ctypes_build.py deleted file mode 100644 index 6829353819..0000000000 --- a/lib_pypy/pypy_tools/_ctypes_build.py +++ /dev/null @@ -1,23 +0,0 @@ -import os - -from cffi import FFI - -ffi = FFI() -ffi.cdef('bool dyld_shared_cache_contains_path(const char* path);') -ffi.set_source('_ctypes_cffi', r''' -#include <stdbool.h> -#include <mach-o/dyld.h> - -bool _dyld_shared_cache_contains_path(const char* path) __attribute__((weak_import)); -bool dyld_shared_cache_contains_path(const char* path) { - if (_dyld_shared_cache_contains_path == NULL) { - return false; - } - return _dyld_shared_cache_contains_path(path); -} -''') - -if __name__ == '__main__': - os.chdir(os.path.dirname(__file__)) - ffi.compile() - |