aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2021-02-05 17:09:57 +0200
committerMatti Picus <matti.picus@gmail.com>2021-02-05 17:09:57 +0200
commit60f481a54861a7ddb1acaa9fc78883df833a178f (patch)
treeb586b2a0496074ac825d3640ca866fcfa03d3946 /lib_pypy/pypy_tools
parentadd new file (diff)
downloadpypy-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.py23
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()
-