diff options
| author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2020-10-06 22:42:43 +0800 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-02-06 15:16:04 +0000 |
| commit | 233afde4cc21f34fa53798409890ebffa64e35fe (patch) | |
| tree | 212735d98e778b2af9094b04f4279015443a46f7 | |
| parent | ccd0cd316325a03f842f3213ad6d13ee12f713ad (diff) | |
| download | meson-233afde4cc21f34fa53798409890ebffa64e35fe.tar.gz | |
add loongarch support
| -rw-r--r-- | docs/markdown/Reference-tables.md | 1 | ||||
| -rw-r--r-- | mesonbuild/dependencies/cuda.py | 2 | ||||
| -rw-r--r-- | mesonbuild/envconfig.py | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index 806ba7600..256aca405 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -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 | diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py index c04e2fcb4..20f656910 100644 --- a/mesonbuild/dependencies/cuda.py +++ b/mesonbuild/dependencies/cuda.py @@ -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] diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index 671313591..ba35d16c9 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -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', |
