Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3d2d980

Browse files
committed
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).
1 parent ed90570 commit 3d2d980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def read_setup_file (filename):
160160
suffix = os.path.splitext(word)[1]
161161
switch = word[0:2] ; value = word[2:]
162162

163-
if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++"):
163+
if suffix in (".c", ".cc", ".cpp", ".cxx", ".c++", ".m", ".mm"):
164164
# hmm, should we do something about C vs. C++ sources?
165165
# or leave it up to the CCompiler implementation to
166166
# worry about?

0 commit comments

Comments
 (0)