Commit cb75d015 authored by Mark Olesen's avatar Mark Olesen

ENH: improve toolset naming

- if passed things like "clang-9", strip down to the base name "clang"
parent baae61e0
......@@ -128,7 +128,7 @@ do
shift
;;
-toolset=*)
optToolset="${1*=}"
optToolset="${1#*=}"
;;
-sys*)
gmpPACKAGE="gmp-system"
......@@ -268,7 +268,15 @@ else
(*)
# Toolset for bootstrap and build
[ -n "$optToolset" ] || optToolset="$(whichCC)"
if [ -z "$optToolset" ]
then
optToolset="$(whichCC)"
# Base names for gcc-8, clang-9 etc.
case "$optToolset" in
(clang*) optToolset=clang;;
(gcc*) optToolset=gcc;;
esac
fi
buildOpt="toolset=$optToolset"
;;
esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment