Skip to content
Snippets Groups Projects

Support Windows on ARM64

Merged Michael Kuron requested to merge arm64-win into master
Viewing commit 587b23f6
Show latest version
6 files
+ 31
7
Preferences
Compare changes
Files
6
@@ -45,6 +45,9 @@ def get_supported_instruction_sets():
if (platform.system() == 'Darwin' or platform.system() == 'Linux') and platform.machine() == 'arm64':
# not supported by cpuinfo
return ['neon']
elif platform.system() == 'Windows' and platform.machine() == 'ARM64':
# not supported by cpuinfo
return ['neon']
elif platform.system() == 'Linux' and platform.machine().startswith('riscv'): # not supported by cpuinfo
libc = CDLL('libc.so.6')
hwcap = libc.getauxval(16) # AT_HWCAP