mirror of
https://github.com/vlang/v.git
synced 2025-09-09 15:27:05 -04:00
native: add comptime cpu archs support (#24956)
This commit is contained in:
parent
1f11b2b99c
commit
735f8efb61
@ -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…
x
Reference in New Issue
Block a user