Skip to content

Commit 2f91b96

Browse files
committed
Avoid deprecated Meson feature
* https://mesonbuild.com/Python-3-module.html > This module is deprecated and replaced by the python module.
1 parent 61ddc4b commit 2f91b96

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: .travis_scripts/meson_builder.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ _COMPILER_NAME=`basename ${CXX}`
6565
_BUILD_DIR_NAME="build-${BUILD_TYPE}_${LIB_TYPE}_${_COMPILER_NAME}"
6666

6767
./.travis_scripts/run-clang-format.sh
68-
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}"
68+
meson --fatal-meson-warnings --werror --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . "${_BUILD_DIR_NAME}"
6969
ninja -v -j 2 -C "${_BUILD_DIR_NAME}"
7070

7171
cd "${_BUILD_DIR_NAME}"

Diff for: meson.build

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ jsoncpp_dep = declare_dependency(
7171
)
7272

7373
# tests
74-
#python = import('python3').find_python()
75-
python = find_program('python3', 'python')
74+
python = import('python').find_installation()
7675

7776
jsoncpp_test = executable(
7877
'jsoncpp_test',

0 commit comments

Comments
 (0)