integration/export: allow manually specifying toolchain triple.
If the environment variable TRIPLE is defined, use its value as the highest priority candidate. Useful for testing new cross-compilers, or selecting among toolchains in a different priority than the built-in list.
This commit is contained in:
parent
8623b0a16a
commit
13d1d4cf8e
|
@ -64,6 +64,9 @@ def get_cpu_mak(cpu, compile_software):
|
||||||
r = None
|
r = None
|
||||||
if not isinstance(triple, tuple):
|
if not isinstance(triple, tuple):
|
||||||
triple = (triple,)
|
triple = (triple,)
|
||||||
|
override = os.getenv( "TRIPLE" )
|
||||||
|
if override:
|
||||||
|
triple = (override,) + triple
|
||||||
p = get_platform()
|
p = get_platform()
|
||||||
for i in range(len(triple)):
|
for i in range(len(triple)):
|
||||||
t = triple[i]
|
t = triple[i]
|
||||||
|
|
Loading…
Reference in New Issue