summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-10-29 14:21:08 +0000
committerEric Engestrom <eric.engestrom@intel.com>2019-11-05 20:12:32 +0000
commit2c4395e61c4c090a85f21d57f2d670b5cd59795a (patch)
tree12c7404508332dd08ffea4432e7a47e31788d3e8 /meson.build
parent67718ca3520b3540dfe08840e6397613c439f5db (diff)
meson: add variable to control the symbols checks
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviwed-by: Dylan Baker <dylan@pnwbakers>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index b2d160ccedf..dcc4827fed7 100644
--- a/meson.build
+++ b/meson.build
@@ -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