Skip to content

Commit

Permalink
Try workaround for cpuid failure on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Dec 16, 2024
1 parent 4b9e388 commit 5d6cb25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ def compile_objects(self, platform, py_arch, obj_dir):
spec["flags"] = [
f for f in spec["flags"] if "visibility=hidden" not in f
]
spec["flags"].append(
"-D__cpuid=__cpuid_function"
)
objects.append(self.build_object(env=env, **spec))
return objects

Expand Down

0 comments on commit 5d6cb25

Please sign in to comment.