Kaydet (Commit) 461540b8 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

Backport of akuchling's checkin of 1.10:

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.
üst 5163991a
......@@ -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?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment