diff options
author | Kunwu.Chan <kunwu.chan@hotmail.com> | 2023-09-22 23:33:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-22 08:33:19 -0700 |
commit | c0da998afa7466d58c12d8a54baf09d09ae3225e (patch) | |
tree | bd795aa1eb5035cc3feca3902db04d653021b862 | |
parent | ded5bd77ad4cf078506ec3ed38278cd5d69d510a (diff) | |
download | meson-c0da998afa7466d58c12d8a54baf09d09ae3225e.zip meson-c0da998afa7466d58c12d8a54baf09d09ae3225e.tar.gz meson-c0da998afa7466d58c12d8a54baf09d09ae3225e.tar.bz2 |
CPU family support 'sw_64' and remove the compile warning (#12273)
add sw_64 to the list of known cpus
-rw-r--r-- | docs/markdown/Reference-tables.md | 2 | ||||
-rw-r--r-- | mesonbuild/envconfig.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index a21b40b..86f3e9e 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -128,11 +128,13 @@ set in the cross file. | sh4 | SuperH SH-4 | | sparc | 32 bit SPARC | | sparc64 | SPARC v9 processor | +| sw_64 | 64 bit sunway processor | | wasm32 | 32 bit Webassembly | | wasm64 | 64 bit Webassembly | | x86 | 32 bit x86 processor | | x86_64 | 64 bit x86 processor | + Any cpu family not listed in the above list is not guaranteed to remain stable in future releases. diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index c6b543a..5621b99 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -68,6 +68,7 @@ known_cpu_families = ( 'sh4', 'sparc', 'sparc64', + 'sw_64', 'wasm32', 'wasm64', 'x86', @@ -86,6 +87,7 @@ CPU_FAMILIES_64_BIT = [ 'riscv64', 's390x', 'sparc64', + 'sw_64', 'wasm64', 'x86_64', ] |