I fully agree but I found no other way in my first attempt. Perhaps something like this -->

```ruby
def determine_cxx
  case determine_cc # that does the logic and now we just set the corresponding C++ compiler
  when 'gcc-4.2' then 'g++-4.2'
  when 'llvm-gcc' then 'llvm-g++'
  when 'gcc' then 'g++'
  when 'clang' then 'clang++'
end
```