[Python-checkins] CVS: distutils/distutils msvccompiler.py,1.39,1.40

Greg Ward python-dev@python.org
Wed, 30 Aug 2000 17:31:10 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19958

Modified Files:
	msvccompiler.py 
Log Message:
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.


Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/msvccompiler.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** msvccompiler.py	2000/08/30 17:32:24	1.39
--- msvccompiler.py	2000/08/31 00:31:07	1.40
***************
*** 220,225 ****
  
          self.preprocess_options = None
!         self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3' ]
!         self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/Z7', '/D_DEBUG']
  
          self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
--- 220,226 ----
  
          self.preprocess_options = None
!         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']