From: Alexey Loukianov <l...@lexa2.ru>

Fix patch-specs.sh to also look for "*-cpp.exe"
when searching for C preprocessor.

Signed-off-by: Alexey Loukianov <l...@lexa2.ru>
(Small title edit)
Signed-off-by: Rosen Penev <ros...@gmail.com>
---
 scripts/patch-specs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh
index 2262e218fe..8c6c0a9655 100755
--- a/scripts/patch-specs.sh
+++ b/scripts/patch-specs.sh
@@ -11,7 +11,7 @@ fi
 
 echo -n "Locating cpp ... "
 for bin in bin usr/bin usr/local/bin; do
-       for cmd in "$DIR/$bin/"*-cpp; do
+       for cmd in "$DIR/$bin/"*-cpp "$DIR/$bin/"*-cpp.exe; do
                if [ -x "$cmd" ]; then
                        echo "$cmd"
                        CPP="$cmd"
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to