native: minor comptime fixes

This commit is contained in:
Alexander Medvednikov 2025-02-19 15:35:41 +03:00
parent 99635cfba9
commit af3f6c18f5

View file

@ -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
//