python3: Another try to fix handling ".mc" files

This commit is contained in:
Alexey Pavlov
2019-07-30 10:32:19 +03:00
parent 1912c5bffe
commit 913e8e443a
2 changed files with 6 additions and 3 deletions

View File

@@ -29,9 +29,12 @@
else: # for other files use the C-compiler
try:
self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
@@ -261,7 +283,7 @@
@@ -259,9 +281,9 @@
base, ext = os.path.splitext(src_name)
# use 'normcase' only for resource suffixes
ext_normcase = os.path.normcase(ext)
if ext_normcase in ['.rc','.res']:
- if ext_normcase in ['.rc','.res']:
+ if ext_normcase in ['.rc', '.res', '.mc']:
ext = ext_normcase
- if ext not in (self.src_extensions + ['.rc','.res']):
+ if ext not in (self.src_extensions + ['.rc', '.res', '.mc']):

View File

@@ -578,5 +578,5 @@ sha256sums=('fb799134b868199930b75f26678f18932214042639cd52b16da7fd134cd9b13f'
'6ee9095eb78c88c205e225c0e8a0b169f5498c62d6531a2d3199450d0fe895e5'
'09c9f8e14c1f54a1242f4db21af4a014d414fd72b3a92241842965f550f75472'
'180fd0a8f4d24ed7e50eb7916548f7fe398811a76063b043efdf7ab18602c55b'
'f376056f995878bfd50a30e3ec3f34d9a598504062395fb1aff1518e2fa83abf'
'f6aa23ec8031f24fb38330e9f150e82781a3802321b038906d083d7b0269bcfa'
'821402ddaef92140c70041b007bcf15e1cd5fe0fdb9f4f612da868382cc24585')