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:
Gary Wong 2021-01-22 11:58:14 -07:00
parent 8623b0a16a
commit 13d1d4cf8e
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ def get_cpu_mak(cpu, compile_software):
r = None
if not isinstance(triple, tuple):
triple = (triple,)
override = os.getenv( "TRIPLE" )
if override:
triple = (override,) + triple
p = get_platform()
for i in range(len(triple)):
t = triple[i]