Skip to content

Commit

Permalink
try JNI build again
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Jun 3, 2024
1 parent 8a343c2 commit a150f6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/configure.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ if (getRversion() < "4.2") { # Windoz
if (.Platform$OS.type == "unix") {
java_home <- Sys.getenv("JAVA_HOME")
} else {
system("tools/jvm-w32")
system("make tools/jvm-w32")
java_home <- system("tools/jvm-w32/findjava -s -f", intern = TRUE)
# system("make tools/jvm-w32 clean")
}

if (length(java_home) == 0) {
message("No JAVA_HOME defined; ignoring JNI compilation")
stop("no java")
} else {
message("Using JAVA_HOME=", java_home)
jni_path = file.path(java_home, "include")
Expand Down
8 changes: 4 additions & 4 deletions tools/jvm-w32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Author: Simon Urbanek
# with contributions from Brian Ripley

include $(R_HOME)/etc$(R_ARCH)/Makeconf
# $(R_HOME)/etc$(R_ARCH)/Makeconf

TARGETS=findjava.exe

Expand All @@ -13,9 +13,9 @@ TARGETS=findjava.exe
all: $(TARGETS)

# detect 64-bit Windows
ifeq ($(strip $(shell $(R_HOME)/bin/R --slave -e 'cat(.Machine$$sizeof.pointer)')),8)
JVM64DEF=64
endif
# ifeq ($(strip $(shell $(R_HOME)/bin/R --slave -e 'cat(.Machine$$sizeof.pointer)')),8)
# JVM64DEF=64
# endif

# compile findjava.exe from source - no magic here, no special libs necessary
findjava.o: findjava.c
Expand Down

0 comments on commit a150f6e

Please sign in to comment.