Skip to content

Commit ff618ac

Browse files
authored
Rework removal of compiler options
1 parent b1f6d90 commit ff618ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
3535
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
3636
fi
3737

38-
bn=`basename "$compiler_name"`
38+
cn= `echo $compiler_name | sed -e 's/ -.*//'`
39+
bn=`basename "$cn"`
3940

4041
case "$bn" in
4142
*-*) if [ "$bn" != '-' ]; then
4243
cross_suffix="$cross_suffix${bn%-*}-"
43-
cross_suffix=`echo $cross_suffix|sed -e 's/ -$//'`
4444
fi
4545
esac
4646

0 commit comments

Comments
 (0)