diff options
author | def <dennis@felsin9.de> | 2015-05-03 03:47:24 +0200 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-05-03 03:49:11 +0200 |
commit | 0e8e57496190f1773667b8c536c72a8b47d1b9e6 (patch) | |
tree | 0cec09d33bc802260f27e10cca1fd6f6e0bccbd9 /compiler/semfold.nim | |
parent | fe268b7df7f6b8f7dbfc7eba9c159c6bca769520 (diff) | |
download | Nim-0e8e57496190f1773667b8c536c72a8b47d1b9e6.tar.gz |
Use builtin overflow functions of Clang and GCC (WIP, RFC)
This only works with recent Clang and GCC 5.0. Currently it doesn't work because __has_builtin can't be defined. This is totally ugly. But we can't reliably detect whether we can use the builtins from Nim, especially with cross-compiling where the user may be using an older compiler version. Switching this on/off manually with a define seems weird as well, this should work automatically.
Diffstat (limited to 'compiler/semfold.nim')
0 files changed, 0 insertions, 0 deletions