Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22379>
endif
endif
+# Detect __builtin_ia32_clflushopt support
+if cc.has_function('__builtin_ia32_clflushopt', args : '-mclflushopt')
+ pre_args += '-DHAVE___BUILTIN_IA32_CLFLUSHOPT'
+ clflushopt_args = ['-mclflushopt']
+ with_clflushopt = true
+else
+ clflushopt_args = []
+ with_clflushopt = false
+endif
+
# Check for GCC style atomics
dep_atomic = null_dep