From 9c9dce2e5f04de65b7b00321f96fff6071546ea1 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Mon, 17 Oct 2022 15:44:16 +0800 Subject: [PATCH] configure: skip toolchain checks Current logic fetch full command line along with the tool. i.e gcc -m64 -march=skylake -mtune=generic ... Which throws ERROR: Cannot find tool -m64 So need to re-write for loop, so it can work in cross-compilation environment too. Upstream-Status: Inappropriate Signed-off-by: Naveen Saini --- configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index b4e824f..10618fc 100755 --- a/configure +++ b/configure @@ -69,12 +69,12 @@ check_toolchain() CLANG=$(find_tool clang "$CLANG") LLC=$(find_tool llc "$LLC") - for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4; do - if [ ! $(command -v ${TOOL} 2>/dev/null) ]; then - echo "*** ERROR: Cannot find tool ${TOOL}" ; - exit 1; - fi; - done + #for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4; do + # if [ ! $(command -v ${TOOL} 2>/dev/null) ]; then + # echo "*** ERROR: Cannot find tool ${TOOL}" ; + # exit 1; + # fi; + #done clang_version=$($CLANG --version | grep -Po '(?<=clang version )[[:digit:]]+') if [ "$?" -ne "0" ]; then