An old code caused problems under Windows - additional temporary file was created for clang preprocessor output while the right output file remained empty.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239970
91177308-0d34-0410-b5e6-
96231b3b80d8
my ($PPH, $PPFile) = tempfile( $prefix . "_XXXXXX",
SUFFIX => GetPPExt($Lang),
DIR => $Dir);
- system $Clang, @$Args, "-E", "-o", $PPFile;
close ($PPH);
+ system $Clang, @$Args, "-E", "-o", $PPFile;
# Create the info file.
open (OUT, ">", "$PPFile.info.txt") or die "Cannot open $PPFile.info.txt\n";