forked from mirrors/nixpkgs
c1e77269cf
For Nixpkgs it seems best to disable the usage of CPU extensions by default as older CPUs don't support them which will result in a crash at runtime (SIGILL: Illegal instruction) [0]. The performance on my old test system was more than enough anyway (usually ~10% CPU usage due to wayvnc). [0]: https://github.com/any1/neatvnc/issues/21
18 lines
338 B
Diff
18 lines
338 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 31dd8b8..8761087 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -21,12 +21,6 @@ endif
|
|
|
|
cpu = host_machine.cpu_family()
|
|
|
|
-if cpu == 'x86_64'
|
|
- c_args += '-mavx'
|
|
-elif cpu == 'arm'
|
|
- c_args += '-mfpu=neon'
|
|
-endif
|
|
-
|
|
add_project_arguments(c_args, language: 'c')
|
|
|
|
cc = meson.get_compiler('c')
|