From 3baf8d92c3efc71d09e28de97a0ba7f303e349e6 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 23 Nov 2023 01:20:19 +0000 Subject: [PATCH] Add assert to disallow `-no-crt` when importing `core:c/libc` --- core/c/libc/types.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/c/libc/types.odin b/core/c/libc/types.odin index a49e52fb6..cc844c1c5 100644 --- a/core/c/libc/types.odin +++ b/core/c/libc/types.odin @@ -2,6 +2,8 @@ package libc import "core:c" +#assert(!ODIN_NO_CRT, `"core:c/libc" cannot be imported when '-no-crt' is used`) + char :: c.char // assuming -funsigned-char schar :: c.schar