From: Andrew M. Kuchling Date: Fri, 21 Dec 2001 15:34:17 +0000 (+0000) Subject: Suggested by Pete Shinners: treat .m and .mm files as source code. X-Git-Tag: v2.3c1~6969 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d2d980f5036c5b8c3bfce80dc570cd1e164f613;p=python 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). --- diff --git a/Lib/distutils/extension.py b/Lib/distutils/extension.py index fbae7c5226..a31ccbce8d 100644 --- a/Lib/distutils/extension.py +++ b/Lib/distutils/extension.py @@ -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?