File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ def get_java_compiler() -> str:
30
30
return os .path .join (JAVA_HOME , 'bin' , 'javac' )
31
31
32
32
33
- def get_java_architecture () -> str :
33
+ def get_java_bitness () -> int :
34
34
out = check_output ([get_java_executable (), '-version' ], stderr = STDOUT ).decode ('utf-8' )
35
35
36
36
if out .find ('64-Bit' ) != - 1 :
37
- return '64bit'
38
- return '32bit'
37
+ return 64
38
+ return 32
39
39
40
40
41
- OUTS_DIR = 'outs' if get_java_architecture () == '64bit' else 'outs32'
41
+ OUTS_DIR = 'outs' if get_java_bitness () == 64 else 'outs32'
42
42
43
43
44
44
def output_file (name : str , directory : Optional [str ] = None ) -> str :
@@ -52,7 +52,7 @@ def dynamic_library_name(lib_name) -> str:
52
52
def dynamic_lib_format () -> str :
53
53
os_type = platform .system ()
54
54
if os_type == "Windows" :
55
- if get_java_architecture () == "32bit" :
55
+ if get_java_bitness () == 32 :
56
56
return '{}32.dll'
57
57
else :
58
58
return '{}.dll'
You can’t perform that action at this time.
0 commit comments