llvm 3.5.2
[git/cygwin-packages/llvm3.5.git] / 3.4.2-cygwin-ctypes.patch
1 --- origsrc/llvm-3.4.2.src/tools/clang/bindings/python/clang/cindex.py 2013-10-30 19:03:33.000000000 -0500
2 +++ src/llvm-3.4.2.src/tools/clang/bindings/python/clang/cindex.py 2014-07-18 01:42:09.886168900 -0500
3 @@ -3350,12 +3350,14 @@ class Config:
4 if Config.library_file:
5 return Config.library_file
6
7 - import platform
8 - name = platform.system()
9 + import sys
10 + name = sys.platform
11
12 - if name == 'Darwin':
13 + if name == 'darwin':
14 file = 'libclang.dylib'
15 - elif name == 'Windows':
16 + elif name == 'cygwin':
17 + file = 'cygclang.dll'
18 + elif name == 'win32':
19 file = 'libclang.dll'
20 else:
21 file = 'libclang.so'
This page took 0.031956 seconds and 5 git commands to generate.