Skip to content

Commit 74b1a80

Browse files
committed
meson: remove checks for optional libraries
Very few libraries in DPDK are marked as optional. For SPDK when most of the drivers are disabled, the requirements are much lower. By removing the check for optional libraries, it is possible to pass a narrow set of actually required libraries. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.spdk.io/c/spdk/dpdk/+/25891 (spdk-25.03) (cherry picked from commit 792dc98) Change-Id: I60fbc7307a4f33482025a3b3c00948c091d236ff Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@nutanix.com> Reviewed-on: https://review.spdk.io/c/spdk/dpdk/+/26630 Reviewed-by: Konrad Sztyber <ksztyber@nvidia.com> Reviewed-by: Jim Harris <jim.harris@nvidia.com> Tested-by: Tomasz Zawadzki <tomasz@tzawadzki.com>
1 parent 41f5047 commit 74b1a80

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,8 @@ foreach l:libraries
157157
build = false
158158
reason = 'not in enabled libraries build config'
159159
elif disable_libs.contains(l)
160-
if always_enable.contains(l)
161-
warning('Cannot disable mandatory library "@0@"'.format(l))
162-
else
163-
build = false
164-
reason = 'explicitly disabled via build config'
165-
endif
160+
build = false
161+
reason = 'explicitly disabled via build config'
166162
endif
167163

168164
if build

0 commit comments

Comments
 (0)