message: drake.cxx: accept compiler names such as clang++-mp-devel
diff: @@ -1011,9 +1011,13 @@ class GccToolkit(Toolkit):
  def __split(self):
  if self.__splitted is None:
  - # On MacPorts, compilers are named clang++-mp-3.9, g++-mp-6, etc.
  r = re.compile(
  - '(.*-)?(g\+\+|clang\+\+)((?:-mp)?-[0-9]+(\.[0-9]+(\.[0-9]+)?)?)?$')
  + '(?P<prefix>.*-)?'
  + '(?P<basename>g\+\+|clang\+\+)'
  + '(?P<suffix>'
  + '(?:-mp)?' # On MacPorts, compilers are named clang++-mp-3.9, g++-mp-6, etc.
  + '-(?:devel|[0-9]+(\.[.0-9]+)?)'
  + ')?')
  match = r.match(self.cxx)
  if not match:
  raise Exception('unrecognized compiler name: %s' % self.cxx)
  