File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -180,13 +180,16 @@ def format_build_time(duration):
180
180
def default_build_triple ():
181
181
"""Build triple as in LLVM"""
182
182
default_encoding = sys .getdefaultencoding ()
183
- required = not sys .platform = = 'win32'
184
- ostype = require (["uname" , "-s" ], exit = required ). decode ( default_encoding )
185
- cputype = require (['uname' , '-m' ], exit = required ). decode ( default_encoding )
183
+ required = sys .platform ! = 'win32'
184
+ ostype = require (["uname" , "-s" ], exit = required )
185
+ cputype = require (['uname' , '-m' ], exit = required )
186
186
187
187
if ostype is None or cputype is None :
188
188
return 'x86_64-pc-windows-msvc'
189
189
190
+ ostype = ostype .decode (default_encoding )
191
+ cputype = cputype .decode (default_encoding )
192
+
190
193
# The goal here is to come up with the same triple as LLVM would,
191
194
# at least for the subset of platforms we're willing to target.
192
195
ostype_mapper = {
You can’t perform that action at this time.
0 commit comments