Skip to content

Commit 294d320

Browse files
committed
mingw
1 parent 7be0fda commit 294d320

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

selfcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
output=$(./simplecpp simplecpp.cpp -e -f 2>&1)
44
ec=$?
@@ -34,7 +34,7 @@ if [ "$cxx_type" = "g++" ] || [ "$cxx_type" = "g++.exe" ]; then
3434
while read line
3535
do
3636
inc="$inc -I$line"
37-
done <<< "$($CXX -x c++ -v -c - 2>&1 < /dev/null | grep -e'^ [/A-Z]' | grep -v /cc1plus | grep -v /as)"
37+
done <<< "$($CXX -x c++ -v -c -S - 2>&1 < /dev/null | grep -e'^ [/A-Z]' | grep -v /cc1plus)"
3838
elif [ "$cxx_type" = "clang" ]; then
3939
defs=
4040
defs="$defs -D__BYTE_ORDER__"
@@ -56,7 +56,7 @@ elif [ "$cxx_type" = "clang" ]; then
5656
while read line
5757
do
5858
inc="$inc -I$line"
59-
done <<< "$($CXX -x c++ -v -c - 2>&1 < /dev/null | grep -e'^ [/A-Z]')"
59+
done <<< "$($CXX -x c++ -v -c -S - 2>&1 < /dev/null | grep -e'^ [/A-Z]')"
6060
elif [ "$cxx_type" = "Apple" ]; then
6161
appleclang_ver=$($CXX -dumpversion)
6262
appleclang_ver=${appleclang_ver%%.*}

0 commit comments

Comments
 (0)