mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
add the concept of an OS to target info
This commit is contained in:
parent
6f3c8477e6
commit
7df31619dd
6 changed files with 45 additions and 28 deletions
|
@ -60,7 +60,7 @@ impl FloatWidth {
|
|||
match self {
|
||||
F32 => 4,
|
||||
F64 | F128 => match target_info.architecture {
|
||||
X86_64 | Aarch64 | Wasm32 | Windows64 => 8,
|
||||
X86_64 | Aarch64 | Wasm32 => 8,
|
||||
X86_32 | Aarch32 => 4,
|
||||
},
|
||||
}
|
||||
|
@ -127,8 +127,7 @@ impl IntWidth {
|
|||
Architecture::X86_64
|
||||
| Architecture::Aarch64
|
||||
| Architecture::Aarch32
|
||||
| Architecture::Wasm32
|
||||
| Architecture::Windows64 => 8,
|
||||
| Architecture::Wasm32 => 8,
|
||||
Architecture::X86_32 => 4,
|
||||
},
|
||||
U128 | I128 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue