Permalink
Browse files

Try to get windows platform designator.

by platform instead of os.
  • Loading branch information...
1 parent 0d11933 commit b494607125e088300a91ea248cff4226845ae14d skaller committed Apr 13, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/fbuild/builders/platform.py
@@ -1,3 +1,4 @@
+import platform
import os
import fbuild
@@ -63,14 +64,16 @@ def guess_platform(ctx, arch=None):
except fbuild.builders.MissingProgram:
# Maybe we're on windows. Let's just use what python thinks is the
# platform.
- arch = os.name
+ #arch = os.name
+ arch = platform.system().lower()
else:
# We've got uname, so let's see what platform it thinks we're on.
try:
stdout, stderr = ctx.execute((uname, '-s'), quieter=1)
except fbuild.ExecutionError:
# Ack, that failed too. Just fall back to python.
- arch = os.name
+ #arch = os.name
+ arch = platform.system().lower()
else:
arch = stdout.decode('utf-8').strip().lower()

0 comments on commit b494607

Please sign in to comment.