Tell the Fortran compiler to write preprocessor output directly to a file, as we do for the GNU compiler. The previous "redirect stdout" approach could break checks using flags that add information to stdout when called with `-###`. Fixes: #22156
Co-Author: Yuichiro Utsumi <utsumi.yuichiro@jp.fujitsu.com>