Files
guru/sci-biology/cmdock/files/cmdock-0.1.4-fix-detection.patch
Anna (cybertailor) Vyalkova af0420fb5d sci-biology/cmdock: fix CPU flags detection
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-06-02 09:54:15 +05:00

16 lines
525 B
Diff

--- a/meson.build
+++ b/meson.build
@@ -79,8 +79,10 @@
cpp_compiler = meson.get_compiler('cpp')
-extended_encoders_available = (cpp_compiler.has_header('emmintrin.h') and
- host_machine.cpu_family() == 'x86' and host_machine.cpu_family() == 'x86_64')
+extended_encoders_available = (
+ cpp_compiler.has_header('emmintrin.h') and
+ (host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64')
+)
if not extended_encoders_available
add_project_arguments('-DBUNDLE_NO_SSE', language: 'cpp')