add loongarch support

pull/8105/merge
Xiaotian Wu 4 years ago committed by Jussi Pakkanen
parent ccd0cd3163
commit 233afde4cc
  1. 1
      docs/markdown/Reference-tables.md
  2. 2
      mesonbuild/dependencies/cuda.py
  3. 2
      mesonbuild/envconfig.py

@ -89,6 +89,7 @@ set in the cross file.
| dspic | 16 bit Microchip dsPIC |
| e2k | MCST Elbrus processor |
| ia64 | Itanium processor |
| loongarch64 | 64 bit Loongson processor|
| m68k | Motorola 68000 processor |
| microblaze | MicroBlaze processor |
| mips | 32 bit MIPS processor |

@ -219,7 +219,7 @@ class CudaDependency(ExternalDependency):
raise DependencyException(msg.format(arch, 'Windows'))
return os.path.join('lib', libdirs[arch])
elif machine.is_linux():
libdirs = {'x86_64': 'lib64', 'ppc64': 'lib', 'aarch64': 'lib64'}
libdirs = {'x86_64': 'lib64', 'ppc64': 'lib', 'aarch64': 'lib64', 'loongarch64': 'lib64'}
if arch not in libdirs:
raise DependencyException(msg.format(arch, 'Linux'))
return libdirs[arch]

@ -45,6 +45,7 @@ known_cpu_families = (
'dspic',
'e2k',
'ia64',
'loongarch64',
'm68k',
'microblaze',
'mips',
@ -74,6 +75,7 @@ CPU_FAMILIES_64_BIT = [
'aarch64',
'alpha',
'ia64',
'loongarch64',
'mips64',
'ppc64',
'riscv64',

Loading…
Cancel
Save