Skip to content

Commit

Permalink
Windows related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gbluma committed Apr 2, 2015
1 parent 566f0b7 commit fa16cb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fbuild/lib/fbuild/builders/platform.py
Expand Up @@ -76,7 +76,7 @@ def guess_platform(ctx, arch=None):
arch = platform.system().lower()
else:
arch = stdout.decode('utf-8').strip().lower()
if arch == 'windowsnt' : arch = 'windows'
if arch == 'windowsnt' or 'mingw' in arch: arch = 'windows'

try:
architecture = archmap[arch]
Expand Down
8 changes: 4 additions & 4 deletions fbuild/lib/fbuild/context.py
Expand Up @@ -2,14 +2,14 @@
import signal
import threading
import time
import subprocess

import fbuild
import fbuild.builders.platform
import fbuild.console
import fbuild.db.database
import fbuild.path
import fbuild.sched
import fbuild.subprocess.killableprocess

# ------------------------------------------------------------------------------

Expand Down Expand Up @@ -94,8 +94,8 @@ def execute(self, cmd, msg1=None, msg2=None, *,
stderr_quieter=None,
input=None,
stdin=None,
stdout=fbuild.subprocess.PIPE,
stderr=fbuild.subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
timeout=None,
env=None,
runtime_libpaths=None,
Expand Down Expand Up @@ -177,7 +177,7 @@ def timeout_function(p):

starttime = time.time()
try:
p = fbuild.subprocess.killableprocess.Popen(cmd,
p = subprocess.Popen(cmd,
stdin=fbuild.subprocess.PIPE if input else stdin,
stdout=stdout,
stderr=stderr,
Expand Down
2 changes: 1 addition & 1 deletion fbuild/lib/fbuild/path.py
Expand Up @@ -31,7 +31,7 @@ def __new__(cls, *paths):
s = ''
for path in paths:
if isinstance(path, str):
s = os.path.join(s, path.replace('/', os.sep))
s = os.path.join(s, path.replace('/', os.sep)).replace('"','')
else:
s = os.path.join(s, *path)

Expand Down

0 comments on commit fa16cb7

Please sign in to comment.