meson: add variable to control the symbols checks
[mesa.git] / meson.build
index b2d160ccedf1f0b304c3e152e14fcf41c7e254c8..dcc4827fed7e18d67a4d53a453f6d4cb71ce955e 100644 (file)
@@ -1681,6 +1681,7 @@ endif
 pkg = import('pkgconfig')
 
 prog_nm = find_program('nm', required : false)
+with_symbols_check = prog_nm.found() and with_tests
 
 # This quirk needs to be applied to sources with functions defined in assembly
 # as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391