mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
native: add comptime cpu archs support (#24956)
This commit is contained in:
parent
1f11b2b99c
commit
735f8efb61
1 changed files with 4 additions and 1 deletions
|
@ -162,9 +162,12 @@ fn (mut g Gen) comptime_ident(name string, is_comptime_option bool) bool {
|
|||
'arm64' {
|
||||
g.pref.arch == .arm64
|
||||
}
|
||||
'x86', 'x32' {
|
||||
'x86', 'x32', 'i386', 'arm32', 'rv32' {
|
||||
false // native only supports 64-bit systems
|
||||
}
|
||||
'rv64', 's390x', 'ppc64le', 'loongarch64' {
|
||||
false // not support yet
|
||||
}
|
||||
'little_endian' {
|
||||
true // all systems targeted by native should be little-endian
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue