Fix compilation.

This commit is contained in:
Chao Shen 2018-02-06 09:53:50 +08:00 committed by Jacob Dufault
parent 2117d03aba
commit 2073b36392

View File

@ -62,6 +62,9 @@ if sys.platform == 'win32':
err = ctypes.WinError()
raise err
os.symlink = symlink
elif sys.version_info.major < 3:
os_symlink_bak = os.symlink
os.symlink = lambda src, dst, target_is_directory=False: os_symlink_bak(src, dst)
# There is a null pointer dereference issue in tools/libclang/CXIndexDataConsumer.cpp handleReference.
def patch_byte_in_libclang(filename, offset, old, new):