* lib/old-dejagnu.exp (old-dejagnu): support `Additional sources:'

From-SVN: r23039
This commit is contained in:
Alexandre Oliva 1998-10-13 07:52:27 +00:00 committed by Alexandre Oliva
parent 5ca2111fc2
commit 11f5a9a0fa
2 changed files with 14 additions and 0 deletions

View File

@ -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>
* g++.old-deja/g++.pt/explicit74.C: New test. Explicit

View File

@ -225,6 +225,16 @@ proc old-dejagnu { compiler prog cflagsx default_cflags libs } {
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"
regsub -all "\[./\]" "$name" "-" output;