Skip to content

Commit

Permalink
Add -O3 and -march=native to compile flags
Browse files Browse the repository at this point in the history
The latter is required to make compiler emit bit manipulation CPU instructions.
  • Loading branch information
krivenko committed Jul 18, 2024
1 parent 7b6ee1b commit 67896d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def build_extensions(self):
for ext in self.extensions:
ext.include_dirs.append(self.libcommute_includedir)
ext.cxx_std = 17
ext.extra_compile_args += ["-O3", "-march=native"]

build_ext.build_extensions(self)

Expand Down

0 comments on commit 67896d9

Please sign in to comment.