]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of akuchling's checkin of 1.10:
authorMichael W. Hudson <mwh@python.net>
Fri, 28 Dec 2001 10:20:06 +0000 (10:20 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 28 Dec 2001 10:20:06 +0000 (10:20 +0000)
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).

Not sure how this wasn't on the branch already, seeing as I thought it
went into 2.2.

Lib/distutils/extension.py

index fbae7c5226af2e6e99c568376bd3c8017e5849c4..a31ccbce8da5d83e319f1d44e32c217d518d9be1 100644 (file)
@@ -160,7 +160,7 @@ def read_setup_file (filename):
             suffix = os.path.splitext(word)[1]
             switch = word[0:2] ; value = word[2:]
 
-            if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++"):
+            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
                 # worry about?