Merge pull request #780 from garytwong/triple-option

integration/export: allow manually specifying toolchain triple.
This commit is contained in:
enjoy-digital 2021-01-27 08:16:41 +01:00 committed by GitHub
commit f331ddace8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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]