Skip to content
Snippets Groups Projects
Commit 11f5a9a0 authored by Alexandre Oliva's avatar Alexandre Oliva Committed by Alexandre Oliva
Browse files

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

From-SVN: r23039
parent 5ca2111f
No related branches found
No related tags found
No related merge requests found
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 } { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment