summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-11 15:34:04 +0000
committermichelou <michelou@epfl.ch>2007-06-11 15:34:04 +0000
commit1cf6fcfbfaedd1b1659554a0ecc9dd89a43d0a07 (patch)
tree56c33c5aa067eade88784c42b486ee12c861180f /test
parent9578a9df038aa39f343a1b685247f07d6537bec6 (diff)
downloadscala-1cf6fcfbfaedd1b1659554a0ecc9dd89a43d0a07.tar.gz
scala-1cf6fcfbfaedd1b1659554a0ecc9dd89a43d0a07.tar.bz2
scala-1cf6fcfbfaedd1b1659554a0ecc9dd89a43d0a07.zip
added 64-bit library
Diffstat (limited to 'test')
-rwxr-xr-xtest/files/jvm/libnatives-32.so (renamed from test/files/jvm/libnatives.so)bin5359 -> 5359 bytes
-rwxr-xr-xtest/files/jvm/libnatives-64.sobin0 -> 7466 bytes
-rw-r--r--test/files/jvm/natives.scala3
3 files changed, 2 insertions, 1 deletions
diff --git a/test/files/jvm/libnatives.so b/test/files/jvm/libnatives-32.so
index ccbcdd646f..ccbcdd646f 100755
--- a/test/files/jvm/libnatives.so
+++ b/test/files/jvm/libnatives-32.so
Binary files differ
diff --git a/test/files/jvm/libnatives-64.so b/test/files/jvm/libnatives-64.so
new file mode 100755
index 0000000000..8cc6152057
--- /dev/null
+++ b/test/files/jvm/libnatives-64.so
Binary files differ
diff --git a/test/files/jvm/natives.scala b/test/files/jvm/natives.scala
index d3cb24a9d9..4cea731cd3 100644
--- a/test/files/jvm/natives.scala
+++ b/test/files/jvm/natives.scala
@@ -1,6 +1,7 @@
object Test {
//println("java.library.path=" + System.getProperty("java.library.path"))
- System.loadLibrary("natives")
+ val model = System.getProperty("sun.arch.data.model", "32")
+ System.loadLibrary("natives-" + model)
@native
def sayHello(s: String): String = null