jni.exp: New file.
* libjava.jni/jni.exp: New file. * lib/libjava.exp (gcj_link): New proc. From-SVN: r43375
This commit is contained in:
parent
fc07ebe2a7
commit
d19da8d1b4
3 changed files with 176 additions and 0 deletions
|
@ -336,6 +336,27 @@ proc libjava_arguments {{mode compile}} {
|
|||
return $args
|
||||
}
|
||||
|
||||
# Link a bunch of objects into a program. MAIN is the name of the
|
||||
# class holding `main'. Return 0 on failure.
|
||||
proc gcj_link {program main files {options {}}} {
|
||||
set arguments [libjava_arguments link]
|
||||
if {[llength $options]} {
|
||||
eval lappend arguments $options
|
||||
}
|
||||
lappend arguments "additional_flags=--main=$main"
|
||||
set x [prune_warnings [libjava_tcompile $files $program executable \
|
||||
$arguments]]
|
||||
if {$x != ""} {
|
||||
verbose "link failure: $x" 2
|
||||
fail "linking $program"
|
||||
setup_xfail "*-*-*"
|
||||
fail "running $program"
|
||||
return 0
|
||||
}
|
||||
|
||||
pass "linking $program"
|
||||
return 1
|
||||
}
|
||||
|
||||
#
|
||||
# Run the test specified by srcfile and resultfile. compile_args and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue