Skip to content

Commit

Permalink
ypkgcontext: Use SSE2 for 32bit builds
Browse files Browse the repository at this point in the history
This provides a considerable boost to the default 32bit builds.
  • Loading branch information
Peter O'Connor committed Nov 12, 2018
1 parent 7f25dd4 commit d125977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ypkg2/ypkgcontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,13 @@ def init_emul32(self):
ncflags = list()
for flag in self.build.cflags:
if flag.startswith("-march="):
flag = "-march=i686"
flag = "-march=i686 -msse2"
ncflags.append(flag)
self.build.cflags = ncflags
ncxxflags = list()
for flag in self.build.cxxflags:
if flag.startswith("-march="):
flag = "-march=i686"
flag = "-march=i686 -msse2"
ncxxflags.append(flag)
self.build.cxxflags = ncxxflags

Expand Down

0 comments on commit d125977

Please sign in to comment.