cpu_interface: fix select_triple when only one specified
This commit is contained in:
parent
3b27d2ae89
commit
d187921500
|
@ -33,7 +33,7 @@ def get_cpu_mak(cpu):
|
||||||
def select_triple(triple):
|
def select_triple(triple):
|
||||||
r = None
|
r = None
|
||||||
if not isinstance(triple, tuple):
|
if not isinstance(triple, tuple):
|
||||||
triple = (triple)
|
triple = (triple,)
|
||||||
for i in range(len(triple)):
|
for i in range(len(triple)):
|
||||||
t = triple[i]
|
t = triple[i]
|
||||||
if which(t+"-gcc"):
|
if which(t+"-gcc"):
|
||||||
|
|
Loading…
Reference in New Issue