diff --git a/meson.build b/meson.build index 753cd94d94..9e37f8e2aa 100644 --- a/meson.build +++ b/meson.build @@ -540,10 +540,12 @@ features += {'bsd-fstatfs': cc.has_function('fstatfs', prefix: '#include ')} -fragments = join_paths(source_root, 'waftools', 'fragments') - +vector_attribute = '''int main() { +float v __attribute__((vector_size(32))); +} +''' vector = get_option('vector').require( - cc.compiles(files(join_paths(fragments, 'vector.c')), name: 'vector check'), + cc.compiles(vector_attribute, name: 'vector check'), error_message: 'the compiler does not support gcc vectors!', ) features += {'vector': vector.allowed()} diff --git a/waftools/fragments/vector.c b/waftools/fragments/vector.c deleted file mode 100644 index ec482547f7..0000000000 --- a/waftools/fragments/vector.c +++ /dev/null @@ -1,4 +0,0 @@ -int main(int argc, char **argv) { - float v __attribute__((vector_size(32))); - return 0; -}