-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create lib64 symlink for 64-bit, non-macOS, POSIX environments
- Loading branch information
1 parent
8ce9051
commit 5c0b32d
Showing
5 changed files
with
56 additions
and
2 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Debug, Copy, Clone, Serialize, Deserialize)] | ||
pub enum PointerSize { | ||
/// 32-bit architecture. | ||
#[serde(rename = "32")] | ||
_32, | ||
/// 64-bit architecture. | ||
#[serde(rename = "64")] | ||
_64, | ||
} | ||
|
||
impl PointerSize { | ||
pub const fn is_32(self) -> bool { | ||
matches!(self, Self::_32) | ||
} | ||
|
||
pub const fn is_64(self) -> bool { | ||
matches!(self, Self::_64) | ||
} | ||
} |
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