diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-06 15:53:14 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-06 14:00:24 -0500 |
commit | 8f3616e72e996414e6dfc368e8a540e6a52af506 (patch) | |
tree | b4c06eeb36b667b536c00b468917dbf75ae1e58b | |
parent | fdd0675661ad5aac74ee449f14b4a17ca1bd44b5 (diff) | |
download | meson-8f3616e72e996414e6dfc368e8a540e6a52af506.zip meson-8f3616e72e996414e6dfc368e8a540e6a52af506.tar.gz meson-8f3616e72e996414e6dfc368e8a540e6a52af506.tar.bz2 |
Compile asm only on supported cpus. Closes #1287.
-rw-r--r-- | test cases/common/127 cpp and asm/meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test cases/common/127 cpp and asm/meson.build b/test cases/common/127 cpp and asm/meson.build index 55c3d3c..ac7adb3 100644 --- a/test cases/common/127 cpp and asm/meson.build +++ b/test cases/common/127 cpp and asm/meson.build @@ -1,9 +1,16 @@ project('c++ and assembly test', 'cpp') +cpu = host_machine.cpu_family() + +supported_cpus = ['arm', 'x86', 'x86_64'] + +if not supported_cpus.contains(cpu) + error('MESON_SKIP_TEST unsupported cpu:' + cpu) +endif + sources = ['trivial.cc'] # If the compiler cannot compile assembly, don't use it if meson.get_compiler('cpp').get_id() != 'msvc' - cpu = host_machine.cpu_family() sources += ['retval-' + cpu + '.S'] cpp_args = ['-DUSE_ASM'] message('Using ASM') |