mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
native: minor comptime fixes
This commit is contained in:
parent
99635cfba9
commit
af3f6c18f5
1 changed files with 7 additions and 1 deletions
|
@ -129,6 +129,9 @@ fn (mut g Gen) comptime_ident(name string, is_comptime_option bool) bool {
|
|||
'haiku' {
|
||||
g.pref.os == .haiku
|
||||
}
|
||||
'qnx' {
|
||||
g.pref.os == .qnx
|
||||
}
|
||||
//
|
||||
// C compilers, these will probably always be false
|
||||
//
|
||||
|
@ -159,7 +162,7 @@ fn (mut g Gen) comptime_ident(name string, is_comptime_option bool) bool {
|
|||
'arm64' {
|
||||
g.pref.arch == .arm64
|
||||
}
|
||||
'x86' {
|
||||
'x86', 'x32' {
|
||||
false // native only supports 64-bit systems
|
||||
}
|
||||
'little_endian' {
|
||||
|
@ -168,6 +171,9 @@ fn (mut g Gen) comptime_ident(name string, is_comptime_option bool) bool {
|
|||
'big_endian' {
|
||||
false // all systems targeted by native should be little-endian
|
||||
}
|
||||
'autofree' {
|
||||
false
|
||||
}
|
||||
//
|
||||
// Other
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue