diff options
author | Greg Ward <gward@python.net> | 2000-08-31 00:31:07 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-08-31 00:31:07 (GMT) |
commit | 8a98cd9e2566a2f68bb534ebe36f202aca2fd0e0 (patch) | |
tree | b7cca701f9e6e911989db43935f6733086f82250 /Lib | |
parent | cb853261bdfa32382aaa3f8f8ce7923059bdca3b (diff) | |
download | cpython-8a98cd9e2566a2f68bb534ebe36f202aca2fd0e0.zip cpython-8a98cd9e2566a2f68bb534ebe36f202aca2fd0e0.tar.gz cpython-8a98cd9e2566a2f68bb534ebe36f202aca2fd0e0.tar.bz2 |
Add /GX to 'compile_options'. This is definitely needed for C++ source;
according to the MS docs it enables exception-handling, and (according
to Alex Martelli <aleaxit@yahoo.com>) is needed to compile without
getting warnings from standard C++ library headers. Apparently
it doesn't cause any problems with C code, so I haven't bothered
conditionalizing the use of /GX.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/msvccompiler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 6c3f8da..ae08e7f 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -219,8 +219,9 @@ class MSVCCompiler (CCompiler) : self.lib = "lib.exe" self.preprocess_options = None - self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3' ] - self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/Z7', '/D_DEBUG'] + self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GX' ] + self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GX', + '/Z7', '/D_DEBUG'] self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO'] self.ldflags_shared_debug = [ |