From af3f6c18f5936a2ee43f174af7dc9a6eb471d6a8 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 19 Feb 2025 15:35:41 +0300 Subject: [PATCH] native: minor comptime fixes --- vlib/v/gen/native/comptime.v | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vlib/v/gen/native/comptime.v b/vlib/v/gen/native/comptime.v index d7631a6162..f40dfb34e7 100644 --- a/vlib/v/gen/native/comptime.v +++ b/vlib/v/gen/native/comptime.v @@ -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 //