Skip to content

Commit

Permalink
trying to fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
shinaoka committed Jun 24, 2024
1 parent 5107115 commit e45081e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ def build_extensions(self):
if "-arch" in flags_dict:
flags_dict["-march"] = flags_dict.pop("-arch")

if "-march" in flags_dict and platform.system() == 'Darwin':
if flags_dict["-march"] == 'x86_64':
flags_dict["-march"] = 'naive'
if not self.opt_arch:
for key in ["-mtune", "-march", "-arch"]:
if key in flags_dict:
del flags_dict[key]

print(flags_dict)
flags_dict.update(new_flags)
Expand Down

0 comments on commit e45081e

Please sign in to comment.