mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-17 01:20:32 +03:00
Windows MSVC: Remove /Wp64 compiler flag
Remove the /Wp64 flag since it is deprecated starting in Visual Studio 2008.
This commit is contained in:
parent
894d3f653c
commit
6f0dfe6d2d
8
setup.py
8
setup.py
|
@ -181,13 +181,7 @@ class psycopg_build_ext(build_ext):
|
||||||
compiler_name = self.get_compiler().lower()
|
compiler_name = self.get_compiler().lower()
|
||||||
compiler_is_msvc = compiler_name.startswith('msvc')
|
compiler_is_msvc = compiler_name.startswith('msvc')
|
||||||
compiler_is_mingw = compiler_name.startswith('mingw')
|
compiler_is_mingw = compiler_name.startswith('mingw')
|
||||||
if compiler_is_msvc:
|
if compiler_is_mingw:
|
||||||
# If we're using MSVC 7.1 or later on a 32-bit platform, add the
|
|
||||||
# /Wp64 option to generate warnings about Win64 portability
|
|
||||||
# problems.
|
|
||||||
if sysVer >= (2,4) and struct.calcsize('P') == 4:
|
|
||||||
extra_compiler_args.append('/Wp64')
|
|
||||||
elif compiler_is_mingw:
|
|
||||||
# Default MinGW compilation of Python extensions on Windows uses
|
# Default MinGW compilation of Python extensions on Windows uses
|
||||||
# only -O:
|
# only -O:
|
||||||
extra_compiler_args.append('-O3')
|
extra_compiler_args.append('-O3')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user