Skip to content

Commit

Permalink
- added '-fpermissive' to workaround code compile issue for pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
narekgharibyan committed Aug 29, 2017
1 parent 774fa19 commit fa76ec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pykeyvi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fa76ec2

Please sign in to comment.