added a switch -d:nimEmulateOverflowChecks for broken or old GCC versions (#13692)

This commit is contained in:
Andreas Rumpf 2020-03-19 09:56:30 +01:00 • committed by GitHub
commit ba6e7c6365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 5 deletions

View file

@ -549,7 +549,7 @@ typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == siz
#define nimModInt(a, b, res) (((*res) = (a) % (b)), 0)
#define nimModInt64(a, b, res) (((*res) = (a) % (b)), 0)
#if !defined(_MSC_VER)
#if !defined(_MSC_VER) && !defined(NIM_EmulateOverflowChecks)
/* these exist because we cannot have .compilerProcs that are importc'ed
by a different name */