File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33output=$( ./simplecpp simplecpp.cpp -e -f 2>&1 )
44ec=$?
@@ -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)"
3838elif [ " $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]')"
6060elif [ " $cxx_type " = " Apple" ]; then
6161 appleclang_ver=$( $CXX -dumpversion)
6262 appleclang_ver=${appleclang_ver%% .* }
You can’t perform that action at this time.
0 commit comments