Skip to content

Commit

Permalink
Merge pull request #187 from tqo50396/master
Browse files Browse the repository at this point in the history
Update platform.py
  • Loading branch information
skaller authored Dec 4, 2023
2 parents 4586dbe + 9c417da commit d1323c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fbuild/lib/fbuild/builders/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def guess_platform(ctx, arch=None):
if arch is None:
# If we're on Windows, then don't even try uname
if os.name == 'nt':
res = archmap[platform.system().lower()]
if os.getenv('MSYSTEM') is not None:
res = archmap['mingw']
else:
res = archmap[platform.system().lower()]
ctx.logger.passed(res)
return frozenset(res)
# Let's see if uname exists
Expand Down

0 comments on commit d1323c7

Please sign in to comment.