diff --git a/src/build_sys.rs b/src/build_sys.rs index a60c322..9d518a9 100644 --- a/src/build_sys.rs +++ b/src/build_sys.rs @@ -90,7 +90,7 @@ pub fn link_sys_lib(path: &Path) -> Vec { ("", "-lGL"), // OpenGL library ("", "-lglut"), // GLUT library for OpenGL ("", "-lX11"), // X11 library for X Window System - ("", "-mavx"), // AVX instructions + ("", "-march=native"), // AVX instructions ("", "-luring"), // liburing library for asynchronous I/O ("", "-mfpu=neon"), // NEON support for ARM ];