diff options
author | Evan Martin <martine@danga.com> | 2012-08-10 20:39:25 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-08-10 20:44:43 (GMT) |
commit | 09775f02209a07a4e1032b9ab9d8ce5f0ff8d583 (patch) | |
tree | 2955ace975992b8468596feb05425be12e6ba26a /configure.py | |
parent | d58a10965610eb6b338e411ce816b810d76ab59e (diff) | |
download | Ninja-09775f02209a07a4e1032b9ab9d8ce5f0ff8d583.zip Ninja-09775f02209a07a4e1032b9ab9d8ce5f0ff8d583.tar.gz Ninja-09775f02209a07a4e1032b9ab9d8ce5f0ff8d583.tar.bz2 |
windows: fix integer truncation issues for helper binaries
Disable the size_t truncation warning. (Note that this leaves on
the other truncation-related warnings, like int->char.)
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 95f88b1..76abc72 100755 --- a/configure.py +++ b/configure.py @@ -110,6 +110,9 @@ else: if platform == 'windows': cflags = ['/nologo', '/Zi', '/W4', '/WX', '/wd4530', '/wd4100', '/wd4706', '/wd4512', '/wd4800', '/wd4702', '/wd4819', '/GR-', + # Disable size_t -> int truncation warning. + # We never have strings or arrays larger than 2**31. + '/wd4267', '/DNOMINMAX', '/D_CRT_SECURE_NO_WARNINGS', '/DNINJA_PYTHON="%s"' % options.with_python] ldflags = ['/DEBUG', '/libpath:$builddir'] |