summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorTomohiro <gpuppur@gmail.com>2022-02-27 23:36:16 +0900
committerGitHub <noreply@github.com>2022-02-27 15:36:16 +0100
commitc870ff5946731dd1deff828abfe07c1900a5b364 (patch)
tree8bf18860e9f6484e3e87ac91d07fb3fd062d9cbe /lib/nimbase.h
parentc2c9fbd7458db7adb515aad30cfe65b98fba47bf (diff)
downloadNim-c870ff5946731dd1deff828abfe07c1900a5b364.tar.gz
Add error message to pointer size check assert in lib/nimbase.h (#19549)
Diffstat (limited to 'lib/nimbase.h')
-rw-r--r--lib/nimbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index a83bd3006..e4dec0dd2 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -547,7 +547,7 @@ static inline void GCGuard (void *ptr) { asm volatile ("" :: "X" (ptr)); }
 #endif
 
 // Test to see if Nim and the C compiler agree on the size of a pointer.
-NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "");
+NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You probably need to setup the backend compiler for target CPU.");
 
 #ifdef USE_NIM_NAMESPACE
 }