diff options
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.py b/configure.py index 9e1436f..b5c986d 100755 --- a/configure.py +++ b/configure.py @@ -103,8 +103,8 @@ else: if platform == 'windows': cflags = ['/nologo', '/Zi', '/W4', '/WX', '/wd4530', '/wd4100', '/wd4706', - '/wd4512', '/wd4800', '/wd4702', - '/D_CRT_SECURE_NO_WARNINGS', + '/wd4512', '/wd4800', '/wd4702', '/wd4819', + '/DNOMINMAX', '/D_CRT_SECURE_NO_WARNINGS', "/DNINJA_PYTHON=\"%s\"" % (options.with_python,)] ldflags = ['/DEBUG', '/libpath:$builddir'] if not options.debug: @@ -114,6 +114,7 @@ else: cflags = ['-g', '-Wall', '-Wextra', '-Wno-deprecated', '-Wno-unused-parameter', + '-fno-rtti', '-fno-exceptions', '-fvisibility=hidden', '-pipe', "'-DNINJA_PYTHON=\"%s\"'" % (options.with_python,)] @@ -127,6 +128,8 @@ libs = [] if platform == 'mingw': cflags.remove('-fvisibility=hidden'); ldflags.append('-static') +elif platform == 'sunos5': + cflags.remove('-fvisibility=hidden') elif platform == 'windows': pass else: @@ -151,7 +154,7 @@ if platform == 'windows': description='CXX $out') else: n.rule('cxx', - command='$cxx -MMD -MF $out.d $cflags -c $in -o $out', + command='$cxx -MMD -MT $out -MF $out.d $cflags -c $in -o $out', depfile='$out.d', description='CXX $out') n.newline() |