Deduplicate code in JNISystemDependency conditional

pull/11181/head
Tristan Partin 2 years ago
parent 57f91bb593
commit f287cac862
No known key found for this signature in database
GPG Key ID: 5AD0476101F9899D
  1. 4
      mesonbuild/dependencies/dev.py

@ -574,10 +574,10 @@ class JNISystemDependency(SystemDependency):
return java_cpus.get(cpu, cpu)
java_home_lib = self.java_home / 'jre' / 'lib' / cpu_translate(m.cpu_family)
java_home_lib_server = java_home_lib / "server"
else:
java_home_lib = self.java_home / 'lib'
java_home_lib_server = java_home_lib / "server"
java_home_lib_server = java_home_lib / 'server'
if 'jvm' in modules:
jvm = self.clib_compiler.find_library('jvm', environment, extra_dirs=[str(java_home_lib_server)])

Loading…
Cancel
Save