Просмотр исходного кода

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

Nathalie Furmento лет назад: 12
Родитель
Сommit
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