From fa76ec2c4dc3b0212fcbf7e39d4214c3e0dec271 Mon Sep 17 00:00:00 2001 From: narekgharibyan Date: Tue, 29 Aug 2017 14:39:15 +0200 Subject: [PATCH] - added '-fpermissive' to workaround code compile issue for pypy --- pykeyvi/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pykeyvi/setup.py b/pykeyvi/setup.py index 1e1c7b70..a9b6209d 100644 --- a/pykeyvi/setup.py +++ b/pykeyvi/setup.py @@ -52,6 +52,10 @@ def symlink_keyvi(): additional_compile_flags = [] + # workaround for https://bitbucket.org/pypy/pypy/issues/2626/invalid-conversion-from-const-char-to-char + if os.environ['PYTHON_VERSION'] == 'pypy2': + additional_compile_flags.append('-fpermissive') + # re-map the source files in the debug symbol tables to there original location so that stepping in a debugger works if pykeyvi_source_path is not None: additional_compile_flags.append('-fdebug-prefix-map={}={}'.format(pykeyvi_source_path, keyvi_source_path))