build: limit symbol checks to developer mode
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 25 Feb 2021 15:29:03 +0000 (15:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 9 Apr 2021 17:07:25 +0000 (19:07 +0200)
The checking of symbols within each library and driver is only of
interest to developers, so limit to developer mode only.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/meson.build
lib/meson.build

index a5b54a5..0532c06 100644 (file)
@@ -171,15 +171,17 @@ foreach subpath:subdirs
                                endif
                        else
                                lk_args = ['-Wl,--version-script=' + version_map]
-                               # on unix systems check the output of the
-                               # check-symbols.sh script, using it as a
-                               # dependency of the .so build
-                               lk_deps += custom_target(lib_name + '.sym_chk',
-                                       command: [check_symbols,
-                                               version_map, '@INPUT@'],
-                                       capture: true,
-                                       input: static_lib,
-                                       output: lib_name + '.sym_chk')
+                               if developer_mode
+                                       # on unix systems check the output of the
+                                       # check-symbols.sh script, using it as a
+                                       # dependency of the .so build
+                                       lk_deps += custom_target(lib_name + '.sym_chk',
+                                               command: [check_symbols,
+                                                       version_map, '@INPUT@'],
+                                               capture: true,
+                                               input: static_lib,
+                                               output: lib_name + '.sym_chk')
+                               endif
                        endif
 
                        shared_lib = shared_library(lib_name,
index c2052e6..4eed83e 100644 (file)
@@ -177,7 +177,7 @@ foreach l:libraries
                        endif
 
                        lk_deps = [version_map, def_file, mingw_map]
-                       if not is_windows
+                       if developer_mode and not is_windows
                                # on unix systems check the output of the
                                # check-symbols.sh script, using it as a
                                # dependency of the .so build