BMW will halt output of its V-12 engine this summer — ending a three decade-plus run.