aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-09-07 12:27:15 +0100
committergingerBill <bill@gingerbill.org>2022-09-07 12:27:15 +0100
commitab1741ab38d6eae8a6f0927119a1d3223c1928cc (patch)
tree2dcb182f4773121038166b031e97a05444f5e5c1
parentaf76d267717bc3b504a53ac7445e2c82b228600a (diff)
Add Windows 32-bit build system error
-rw-r--r--src/common.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 77caddfe8..bc421b5fd 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -38,6 +38,10 @@ i64 next_pow2(i64 n);
isize next_pow2_isize(isize n);
void debugf(char const *fmt, ...);
+#if defined(GB_SYSTEM_WINDOWS) && defined(GB_ARCH_32_BIT)
+#error Odin on Windows requires a 64-bit build-system. The 'Developer Command Prompt' for VS still defaults to 32-bit shell. The 64-bit shell can be found under the name 'x64 Native Tools Command Prompt' for VS. For more information, please see https://odin-lang.org/docs/install/#for-windows
+#endif
+
#include "threading.cpp"
#include "unicode.cpp"
#include "array.cpp"