summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-17 20:34:36 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-17 20:34:36 +0000
commitbd01a923483b0877c323a23ea8f984b47ce0d8bc (patch)
tree1d54de9ae106f579674e911763cfe9a9066565da
parent3906d95a99bf041a0372023a4814a629e55c085b (diff)
downloadppe42-gcc-bd01a923483b0877c323a23ea8f984b47ce0d8bc.tar.gz
ppe42-gcc-bd01a923483b0877c323a23ea8f984b47ce0d8bc.zip
* libjava.jni/jni.exp (gcj_jni_build_header): Use local_exec, not
target_compile. Fixes PR other/5874. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50923 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libjava/testsuite/ChangeLog5
-rw-r--r--libjava/testsuite/libjava.jni/jni.exp7
2 files changed, 8 insertions, 4 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog
index 888546b10a3..fe5ed13786e 100644
--- a/libjava/testsuite/ChangeLog
+++ b/libjava/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-17 Tom Tromey <tromey@redhat.com>
+
+ * libjava.jni/jni.exp (gcj_jni_build_header): Use local_exec, not
+ target_compile. Fixes PR other/5874.
+
2002-03-15 Eric Blake <ebb9@email.byu.edu>
For PR java/5902:
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp
index f052766b4f9..8dd8b8af049 100644
--- a/libjava/testsuite/libjava.jni/jni.exp
+++ b/libjava/testsuite/libjava.jni/jni.exp
@@ -30,11 +30,10 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
proc gcj_jni_build_header {file} {
set gcjh [find_gcjh]
set file [file rootname $file]
- set options [list "compiler=$gcjh" \
- "additional_flags=-jni"]
- set x [prune_warnings [target_compile $file "" none $options]]
+ set x [string trim [prune_warnings \
+ [lindex [local_exec "$gcjh -jni $file" "" "" 300] 1]]]
if {$x != ""} {
- verbose "target_compile failed: $x" 2
+ verbose "local_exec failed: $x" 2
fail "$file header generation"
return 0
}
OpenPOWER on IntegriCloud