Browse Source

Rework removal of compiler options

tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
ff618ac475
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      c_check

+ 2
- 2
c_check View File

@@ -35,12 +35,12 @@ if [ "`dirname \"$compiler_name\"`" != '.' ]; then
cross_suffix="$cross_suffix`dirname \"$compiler_name\"`/"
fi

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

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



Loading…
Cancel
Save