$platform = "platforms";
}
+my $exeflag=0;
+my $libs = "";
+
# Have fun with the arguments
for ($i = 0; $i <= $#ARGV; $i++) {
$strip = 1;
push @includes, $file;
}
+ elsif (/^-fnesc-cfile=(.*)/){
+ $appfilename=$1;
+ }
+ elsif (/^-o$/){
+ $exeflag=1;
+ }
+ elsif (/^-l/) {
+ $libs = $libs . " " . $_;
+ }
elsif (/^--version$/) {
$print_version = 1;
}
- }
+ } elsif ($exeflag) {
+ $exefilename =$_;
+ $exeflag=0;
+ }
push @new_args, $_ if !$strip;
}
print STDERR join(' ', @new_args), "\n" if $verbose;
-
exec @new_args;
print STDERR "Couldn't execute nescc\n";
exit 2;