Permalink
Browse files

output castxml error

  • Loading branch information...
Skarsnik committed Oct 2, 2018
1 parent aba0beb commit 6caa8b14af9fc5f9aafe86af82908a66f1db0b7d
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/gptrixie
View
@@ -212,7 +212,9 @@ sub do-magic($header, @other) {
if $CASTXML {
my @arg = '--castxml-gccxml', "-std=$CASTXML_STD", '-o', '-', $header, |@other;
gpt-note "Calling castxml : " ~ @arg.join(' ');
$xml-output = run('castxml', @arg, :out).out.slurp;
my $prun = run('castxml', @arg, :out, :err);
die "Error with castxml : " ~ $prun.err.slurp if $prun.exitcode != 0;
$xml-output = $prun.out.slurp;
} else {
gpt-note "Calling GCCXML : $GCC_XML $header -fxml=plop.xml ", |@other;
$xml-output = run($GCC_XML, $header, "-fxml=-", @other, :out).out.slurp;

0 comments on commit 6caa8b1

Please sign in to comment.