-
Notifications
You must be signed in to change notification settings - Fork 261
base64: add 0.5.2 #2441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
base64: add 0.5.2 #2441
Conversation
| ) | ||
|
|
||
| cc = meson.get_compiler('c') | ||
| tests_opt = get_option('tests').disable_auto_if(meson.is_subproject()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @eli-schwartz
25e41d9 to
921ea29
Compare
921ea29 to
fdf4b51
Compare
fdf4b51 to
7e0f523
Compare
| foreach feature, flags : arch_flags | ||
| present = is_x86 and cc.has_multi_arguments(flags) | ||
| config.set10('BASE64_WITH_' + feature, present) | ||
| present_flags += { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could simplify by removing present_flags entirely and doing arch_flags[feature] = [] if not present.
| config.set10('BASE64_WITH_SSSE3', is_x86) | ||
| config.set10('BASE64_WITH_SSE41', is_x86) | ||
| config.set10('BASE64_WITH_SSE42', is_x86) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc.has_multi_arguments([]) evaluates to true, so these are redundant.
| c_args += ['-DBASE64_STATIC_DEFINE'] | ||
| endif | ||
|
|
||
| neon32_supported = host_machine.cpu_family() == 'arm' and cc.has_argument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't arm and aarch64 use the arch_flags mechanism? I think the is_x86 check isn't actually necessary because the compiler should just fail to support the options that aren't relevant for this CPU.
| ] | ||
| }, | ||
| "aklomp-base64": { | ||
| "_comment": "The test program has a bug that causes it to fail with a SIGILL on x86 platforms without avx512 (all CI runners)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this been reported upstream? At minimum we should link to the issue report so it's possible to follow up. Is there any way to work around the bug from meson.build without patching the source?
Adds version 0.5.2 of aklomps base64 library