1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 15542b7

Windows bug fix. Shows up as the JIT complaining that it is
missing liveness. Quite indirect :-(

  • Participants
  • Parent commits 33ec0d8
  • Branches release-1.6.x

Comments (0)

Files changed (1)

File pypy/translator/platform/windows.py

View file
             linkflags = self._args_for_shared(linkflags) + [
                 '/EXPORT:$(PYPY_MAIN_FUNCTION)']
         linkflags += self._exportsymbols_link_flags(eci, relto=path)
+        # Make sure different functions end up at different addresses!
+        # This is required for the JIT.
+        linkflags.append('/opt:noicf')
 
         if shared:
             so_name = exe_name.new(purebasename='lib' + exe_name.purebasename,