mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
Treat zig like clang/gcc wrt integer arithmetic. (#13957)
This commit is contained in:
@@ -19,7 +19,7 @@ proc raiseDivByZero {.compilerproc, noinline.} =
|
||||
|
||||
{.pragma: nimbaseH, importc, nodecl, noSideEffect, compilerproc.}
|
||||
|
||||
when (defined(gcc) or defined(clang)) and not defined(nimEmulateOverflowChecks):
|
||||
when (defined(gcc) or defined(clang) or defined(zig)) and not defined(nimEmulateOverflowChecks):
|
||||
# take the #define from nimbase.h
|
||||
|
||||
proc nimAddInt(a, b: int, res: ptr int): bool {.nimbaseH.}
|
||||
|
||||
Reference in New Issue
Block a user