소스 검색

mic-configure: fix test to check mic host compiler is available

Nathalie Furmento 12 년 전
부모
커밋
deb20004f0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mic-configure

+ 2 - 1
mic-configure

@@ -28,7 +28,8 @@ do
 
 done
 
-if [ ! -x "${mic_host}-gcc" ]
+x=$(type -t ${mic_host}-gcc)
+if [ -z "$x" ]
 then
     echo "[error] please add path to ${mic_host}-gcc in your PATH"
     exit 1