[Python-checkins] CVS: python/dist/src/Lib/distutils extension.py,1.9,1.10

A.M. Kuchling akuchling@users.sourceforge.net
Fri, 21 Dec 2001 07:34:19 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv2918

Modified Files:
	extension.py 
Log Message:
Suggested by Pete Shinners: treat .m and .mm files as source code.
    
Question for Jack Jansen: is this reasonable?  

Candidate for 2.2 release branch (if Jack thinks it's OK).


Index: extension.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/extension.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** extension.py	2001/12/06 20:51:35	1.9
--- extension.py	2001/12/21 15:34:17	1.10
***************
*** 161,165 ****
              switch = word[0:2] ; value = word[2:]
  
!             if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++"):
                  # hmm, should we do something about C vs. C++ sources?
                  # or leave it up to the CCompiler implementation to
--- 161,165 ----
              switch = word[0:2] ; value = word[2:]
  
!             if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++", ".m", ".mm"):
                  # hmm, should we do something about C vs. C++ sources?
                  # or leave it up to the CCompiler implementation to