* lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'
From-SVN: r23039
This commit is contained in:
parent
5ca2111fc2
commit
11f5a9a0fa
|
@ -1,3 +1,7 @@
|
||||||
|
1998-10-13 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||||
|
|
||||||
|
* lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'
|
||||||
|
|
||||||
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
|
1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||||
|
|
||||||
* g++.old-deja/g++.pt/explicit74.C: New test. Explicit
|
* g++.old-deja/g++.pt/explicit74.C: New test. Explicit
|
||||||
|
|
|
@ -225,6 +225,16 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
|
||||||
lappend cflags "additional_flags=$cflagsx"
|
lappend cflags "additional_flags=$cflagsx"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set tmp [lindex [grep $prog "Additional sources: .*"] 0]
|
||||||
|
regsub -all "\n\[^\n\]+(\n|$)" $tmp "\n" tmp
|
||||||
|
set tmp [string trim $tmp]
|
||||||
|
if ![string match "" $tmp] then {
|
||||||
|
regsub "^.*Additional.*sources:" $tmp "" tmp
|
||||||
|
regsub -all " " $tmp " [file dirname $prog]/" tmp
|
||||||
|
lappend cflags "additional_flags=$tmp"
|
||||||
|
verbose "Adding sources $tmp"
|
||||||
|
}
|
||||||
|
|
||||||
lappend cflags "compiler=$compiler"
|
lappend cflags "compiler=$compiler"
|
||||||
|
|
||||||
regsub -all "\[./\]" "$name" "-" output;
|
regsub -all "\[./\]" "$name" "-" output;
|
||||||
|
|
Loading…
Reference in New Issue