message: cxx: Fix static libraries at the build tree root.
diff: @@ -1623,13 +1623,13 @@ class StaticLibLinker(Builder):
  def execute(self):
  # Our 'ar' command apends files to the target, so we must rm it first
  - path = str(self.__library.path())
  + path = self.__library.path()
  try:
  - os.remove(path)
  + os.remove(str(path))
  except:
  pass
  # Make sure the destination dir exists.
  - os.makedirs(os.path.dirname(path), exist_ok=True)
  + os.makedirs(str(path.dirname()), exist_ok = True)
  return self.cmd('Archive %s' % self.__library, self.command)
  @property_memoize
  