From 2073b3639237227d86fc37e7abd8f8885fe48fea Mon Sep 17 00:00:00 2001 From: Chao Shen Date: Tue, 6 Feb 2018 09:53:50 +0800 Subject: [PATCH] Fix compilation. --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index 9eaa3800..472c2b24 100644 --- a/wscript +++ b/wscript @@ -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):