Skip to content

Commit

Permalink
Silence failing auto::va_ptr probes
Browse files Browse the repository at this point in the history
clang -faddress-sanitizer prints a log to stderr on the failing
stack test. Use cc_run_capture instead.
  • Loading branch information
Reini Urban committed Jun 4, 2012
1 parent 30a861c commit cd78d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/auto/va_ptr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ sub runstep {
$conf->cc_gen('config/auto/va_ptr/test_c.in');
eval { $conf->cc_build('-DVA_TYPE_STACK'); };

if ( $@ || $conf->cc_run() !~ /^ok/ ) {
if ( $@ || $conf->cc_run_capture() !~ /^ok/ ) {
eval { $conf->cc_build('-DVA_TYPE_REGISTER'); };
if ( $@ || $conf->cc_run() !~ /^ok/ ) {
if ( $@ || $conf->cc_run_capture() !~ /^ok/ ) {
die "Unknown va_ptr type";
}
$va_type = 'register';
Expand Down

0 comments on commit cd78d9b

Please sign in to comment.