Skip to content

Commit

Permalink
Make t-gdb fail with an error when no debugger was detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed May 1, 2017
1 parent 10f9188 commit ea6bc72
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions infrastructure/makebuildenv.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,18 @@ __E

writetestfile("$mod/t", "GLIBCXX_FORCE_NEW=1 ".
'./_test' . $platform_exe_ext . ' "$@"', $mod);
writetestfile("$mod/t-gdb", "GLIBCXX_FORCE_NEW=1 ".
$debugger . ' ./_test' . $platform_exe_ext . ' "$@"', $mod);


if($debugger)
{
writetestfile("$mod/t-gdb", "GLIBCXX_FORCE_NEW=1 ".
$debugger . ' ./_test' . $platform_exe_ext . ' "$@"', $mod);
}
else
{
writetestfile("$mod/t-gdb",
"echo 'No debugger was detected by configure script'\n".
"exit 2");
}
}

my @all_deps_for_module;
Expand Down

0 comments on commit ea6bc72

Please sign in to comment.