Nim Version
2.2.6, master
Description
nimbase.h makes a non-portable assumption about size of bool, which breaks the build on powerpc-darwin.
https://github.com/nim-lang/csources_v3/blob/eeab3ac46e93f10efda8e58c4db02b9438319d71/c_code/nimbase.h#L328
Bool is not guaranteed to be 1-byte.
Current Output
error: static assertion failed
Expected Output
Known Workarounds
If size of bool does not matter, do not check for it, let compiler pick what is appropriate for a target.
If it must be 1-byte, do not use bool, use a type which is guaranteed to be 1-byte.
Additional Information
Size of bool in PowerPC 32-bit macOS ABI is 4 bytes.