Skip to content
Browse files

Allow --debugger and --gdb/--lldb options to be given to fdmake.pl to…

…gether.
  • Loading branch information...
1 parent 91deebe commit 1384be06a300b4883b3596a69573b85dec49071c @BarAgent BarAgent committed
Showing with 8 additions and 3 deletions.
  1. +8 −3 admin/builds/fdmake.pl
View
11 admin/builds/fdmake.pl
@@ -19,10 +19,12 @@
my $verbose;
my $debugger;
my $gdb;
+my $lldb;
my $compiler = 'dylan-compiler';
&GetOptions('verbose' => \$verbose,
'debugger' => \$debugger,
'gdb' => \$gdb,
+ 'lldb' => \$lldb,
'compiler=s' => \$compiler);
# Names of libraries we already built successfully.
@@ -150,15 +152,18 @@ sub build_library {
my $command = $compiler;
if ($debugger) {
$command .= " -debugger";
- } elsif ($gdb) {
- $command = "gdb --args " . $compiler;
+ }
+ if ($gdb) {
+ $command = "gdb --args " . $command;
+ } elsif ($lldb) {
+ $command = "lldb -- " . $command;
}
if (exists $header->{'target-type'}) {
$command .= " -target " . $header->{'target-type'};
}
$command .= " $library";
- if ($gdb || $debugger) {
+ if ($gdb || $lldb || $debugger) {
system($command) or die "Couldn't execute $command";
print "\n";
}

0 comments on commit 1384be0

Please sign in to comment.
Something went wrong with that request. Please try again.