fixed for more strict gcc syntax
This commit is contained in:
parent
e58504c3f3
commit
db2442486d
14
autoTest.pl
14
autoTest.pl
|
@ -555,11 +555,23 @@ foreach $l (@langs)
|
||||||
if(length($compiler) < 5) {print results "\t";}
|
if(length($compiler) < 5) {print results "\t";}
|
||||||
if($data{$l}{"cflagspre$cp"}) { $cmd .= $data{$l}{"cflagspre$cp"};}
|
if($data{$l}{"cflagspre$cp"}) { $cmd .= $data{$l}{"cflagspre$cp"};}
|
||||||
$cmd .= "$comp ";
|
$cmd .= "$comp ";
|
||||||
|
# So gcc stoped compiling if teh linking was done before the soruce file was specified
|
||||||
|
# go figure
|
||||||
|
$gcc_code = 0;
|
||||||
|
if ($l =~ /^ca?[23]?$/) {
|
||||||
|
$gcc_code = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( $gcc_code) {
|
||||||
|
$cmd .= " ".$data{$l}{"src"}." ";
|
||||||
|
}
|
||||||
if( $data{$l}{"cflags$cp"} )
|
if( $data{$l}{"cflags$cp"} )
|
||||||
{
|
{
|
||||||
$cmd .= $data{$l}{"cflags$cp"};
|
$cmd .= $data{$l}{"cflags$cp"};
|
||||||
}
|
}
|
||||||
$cmd .= " ".$data{$l}{"src"}." ";
|
if ( ! $gcc_code) {
|
||||||
|
$cmd .= " ".$data{$l}{"src"}." ";
|
||||||
|
}
|
||||||
$cmd .= "\\\"\"";
|
$cmd .= "\\\"\"";
|
||||||
|
|
||||||
#printf "CMD: '$cmd'\n";
|
#printf "CMD: '$cmd'\n";
|
||||||
|
|
Loading…
Reference in New Issue