Browse Source

sanity-external-toolchain.bbclass: pass HOST_CC_ARCH

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Christopher Larson 3 years ago
parent
commit
4010c28d61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/sanity-external-toolchain.bbclass

+ 1 - 1
classes/sanity-external-toolchain.bbclass

@@ -48,7 +48,7 @@ def check_toolchain_sanity(d, generate_events=False):
         l.setVar('TOOLCHAIN_OPTIONS', '')
         l.setVar('TARGET_PREFIX', '${EXTERNAL_TARGET_SYS}-')
         l.setVar('HOST_CC_ARCH_remove', '--no-sysroot-suffix')
-        cmd = l.expand('${EXTERNAL_TOOLCHAIN_BIN}/${CC} ${CFLAGS} ${LDFLAGS} test.c -o test')
+        cmd = l.expand('${EXTERNAL_TOOLCHAIN_BIN}/${CC} ${HOST_CC_ARCH} ${CFLAGS} ${LDFLAGS} test.c -o test')
         exttc_sanity_run(shlex.split(cmd), d, generate_events, tmpdir)
 
     with open(sanity_file, 'w') as f: