-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use sys.maxsize rather than platform.machine()
platform.machine() gives the wrong answer if you're running 32-bit Python on a 64-bit machine. sys.maxsize gives the answer we want. See also https://stackoverflow.com/a/1405971/823869. Also use CARGO_CFG_TARGET_POINTER_WIDTH rather than inferring the pointer width from CARGO_CFG_TARGET_ARCH.
- Loading branch information
1 parent
1c1d3c4
commit 010b842
Showing
1 changed file
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters