You could short that to
```
CC=$(use mpi && echo mpic++ || echo $(tc-getCXX)
```
btw, somehow this looks strange as CC is usually the c compile and CXX the c++ compiler. If this is correct add a comment.