summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Kondo <cgigcp3yqt@gmail.com>2018-11-24 21:09:40 +0900
committerNaoto Kondo <cgigcp3yqt@gmail.com>2018-11-26 19:42:17 +0900
commit577e547b6a31cabb41be3360101bc22af3b5323c (patch)
tree5bb23eeffd6ae0e7d7792370e90854540b3d68f3
parent8348aca118311b82f632781b19230471fae56d4a (diff)
downloadredot-engine-577e547b6a31cabb41be3360101bc22af3b5323c.tar.gz
[macOS] Fixed a problem sdk path could not be detected
-rw-r--r--methods.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods.py b/methods.py
index 5fcbc94298..f8fc6c64ef 100644
--- a/methods.py
+++ b/methods.py
@@ -6,7 +6,7 @@ import glob
import string
import datetime
import subprocess
-from compat import iteritems, isbasestring
+from compat import iteritems, isbasestring, decode_utf8
def add_source_files(self, sources, filetype, lib_env=None, shared=False):
@@ -645,7 +645,7 @@ def detect_darwin_sdk_path(platform, env):
if not env[var_name]:
try:
- sdk_path = subprocess.check_output(['xcrun', '--sdk', sdk_name, '--show-sdk-path']).strip()
+ sdk_path = decode_utf8(subprocess.check_output(['xcrun', '--sdk', sdk_name, '--show-sdk-path']).strip())
if sdk_path:
env[var_name] = sdk_path
except (subprocess.CalledProcessError, OSError) as e: