-Xcompiler for .cc files only?

Is there anyway to have -Xcompiler pass arguments ONLY when compiling c++ files, and not c files?