You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2021/12/30 22:09:35 UTC
[arrow] branch master updated: ARROW-15207: [GLib] Use the Meson's default -Dwerror=
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 9547358 ARROW-15207: [GLib] Use the Meson's default -Dwerror=
9547358 is described below
commit 954735880da0ad8c1fb1292b5f36c2f95bc3eaaf
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Fri Dec 31 07:06:51 2021 +0900
ARROW-15207: [GLib] Use the Meson's default -Dwerror=
Instead of custom -Ddevelopment_mode.
Closes #12042 from kou/glib-werror
Authored-by: Sutou Kouhei <ko...@clear-code.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
.github/workflows/ruby.yml | 2 +-
c_glib/meson.build | 7 -------
c_glib/meson_options.txt | 5 -----
ci/scripts/c_glib_build.sh | 4 ++--
4 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index d0a4c4f..f779512 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -110,8 +110,8 @@ jobs:
ARROW_BUILD_TESTS: OFF
ARROW_FLIGHT: ON
ARROW_GANDIVA: ON
- ARROW_GLIB_DEVELOPMENT_MODE: true
ARROW_GLIB_GTK_DOC: true
+ ARROW_GLIB_WERROR: true
ARROW_HOME: /usr/local
ARROW_JEMALLOC: OFF
ARROW_ORC: OFF
diff --git a/c_glib/meson.build b/c_glib/meson.build
index d5f8d66..a502dfd 100644
--- a/c_glib/meson.build
+++ b/c_glib/meson.build
@@ -122,13 +122,6 @@ endif
cxx = meson.get_compiler('cpp')
cxx_flags = []
-if get_option('development_mode')
- if cxx.get_id() == 'msvc'
- cxx_flags += ['/WX']
- else
- cxx_flags += ['-Werror']
- endif
-endif
if cxx.get_id() != 'msvc'
cxx_flags += ['-Wmissing-declarations']
endif
diff --git a/c_glib/meson_options.txt b/c_glib/meson_options.txt
index 1479388..861b9bc 100644
--- a/c_glib/meson_options.txt
+++ b/c_glib/meson_options.txt
@@ -27,11 +27,6 @@ option('arrow_cpp_build_type',
value: 'release',
description: '-DCMAKE_BUILD_TYPE option value for Arrow C++')
-option('development_mode',
- type: 'boolean',
- value: false,
- description: 'Build in development mode')
-
option('gtk_doc',
type: 'boolean',
value: false,
diff --git a/ci/scripts/c_glib_build.sh b/ci/scripts/c_glib_build.sh
index e0baf7f..8efa0ae 100755
--- a/ci/scripts/c_glib_build.sh
+++ b/ci/scripts/c_glib_build.sh
@@ -23,7 +23,7 @@ source_dir=${1}/c_glib
build_dir=${2}/c_glib
build_root=${2}
-: ${ARROW_GLIB_DEVELOPMENT_MODE:=false}
+: ${ARROW_GLIB_WERROR:=false}
: ${BUILD_DOCS_C_GLIB:=OFF}
with_gtk_doc=$([ "${BUILD_DOCS_C_GLIB}" == "ON" ] && echo "true" || echo "false")
@@ -37,8 +37,8 @@ mkdir -p ${build_dir}
# Build with Meson
meson --prefix=$ARROW_HOME \
--libdir=lib \
- -Ddevelopment_mode=${ARROW_GLIB_DEVELOPMENT_MODE} \
-Dgtk_doc=${with_gtk_doc} \
+ -Dwerror=${ARROW_GLIB_WERROR} \
${build_dir} \
${source_dir}