summaryrefslogtreecommitdiff
path: root/drivers/meson.build
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2018-09-18 11:55:52 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-18 15:18:52 +0200
commit77a5e7cdb27b987ccc3a72be275d4cee1ba86fdb (patch)
tree58c2ecc17ebc238cb0870e5ee2b522901e931a1c /drivers/meson.build
parente4f2047190da3ed64fbad2321e7a7e538caba3f3 (diff)
downloaddpdk-next-eventdev-77a5e7cdb27b987ccc3a72be275d4cee1ba86fdb.zip
dpdk-next-eventdev-77a5e7cdb27b987ccc3a72be275d4cee1ba86fdb.tar.gz
dpdk-next-eventdev-77a5e7cdb27b987ccc3a72be275d4cee1ba86fdb.tar.xz
build: fix compatibility with meson 0.41 onwards
Versions of meson prior to 0.47 flattened the parameters to the "set_variable" function, which meant that the function could not take array variables as a parameter. Therefore, we need to disable driver tracking for those older versions, in order to maintain compatibility with the minimum supported 0.41 version, and also v0.45 shipped in Ubuntu 18.04 release. Fixes: 806c45dd483d ("build: add configuration summary at end of config") Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Tested-by: Timothy Redaelli <tredaelli@redhat.com>
Diffstat (limited to 'drivers/meson.build')
-rw-r--r--drivers/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/meson.build b/drivers/meson.build
index b6ce974..c5df313 100644
--- a/drivers/meson.build
+++ b/drivers/meson.build
@@ -145,5 +145,8 @@ foreach class:driver_classes
endif # build
endforeach
- set_variable(class + '_drivers', class_drivers)
+ if meson.version().version_compare('>=0.47')
+ # prior to 0.47, set_variable can't take array params
+ set_variable(class + '_drivers', class_drivers)
+ endif
endforeach