Fix meson deprecation warning
authorMatthias Goergens <matthias.goergens@gmail.com>
Fri, 7 Apr 2023 06:48:00 +0000 (14:48 +0800)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 7 Apr 2023 13:01:16 +0000 (14:01 +0100)
Also for rest of CI

test/ci-build.sh

index 71508d9ed5c7274abd2b5031e28d72da91760b36..28ff0d8c0a29c4eba8d2fe36fc4b8ad01ed01b35 100755 (executable)
@@ -43,7 +43,7 @@ for CC in gcc gcc-9 gcc-10 clang; do
     else
         build_opts=''
     fi
-    meson -D werror=true ${build_opts} "${SOURCE_DIR}" || (cat meson-logs/meson-log.txt; false)
+    meson setup -D werror=true ${build_opts} "${SOURCE_DIR}" || (cat meson-logs/meson-log.txt; false)
     ninja
 
     sudo chown root:root util/fusermount3
@@ -65,7 +65,7 @@ sanitized_build()
 
     # b_lundef=false is required to work around clang
     # bug, cf. https://groups.google.com/forum/#!topic/mesonbuild/tgEdAXIIdC4
-    meson -D b_sanitize=${san} -D b_lundef=false -D werror=true\
+    meson setup -D b_sanitize=${san} -D b_lundef=false -D werror=true\
            ${additonal_option} "${SOURCE_DIR}" \
            || (cat meson-logs/meson-log.txt; false)
     ninja