This is an automated email from the ASF dual-hosted git repository.
willayd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new eb242312 ci: Remove Meson default_option to set buildtype of release
(#785)
eb242312 is described below
commit eb242312c2e679b24284dd49706ab8d6d0c995c4
Author: William Ayd <[email protected]>
AuthorDate: Sat Jun 14 05:14:03 2025 -0400
ci: Remove Meson default_option to set buildtype of release (#785)
---
.github/workflows/build-and-test.yaml | 1 +
ci/scripts/build-with-meson.sh | 5 ++++-
meson.build | 7 +------
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build-and-test.yaml
b/.github/workflows/build-and-test.yaml
index 539ba6fd..ab9a4a2d 100644
--- a/.github/workflows/build-and-test.yaml
+++ b/.github/workflows/build-and-test.yaml
@@ -184,6 +184,7 @@ jobs:
- name: Run meson
run: |
meson setup builddir `
+ -Dbuildtype=release `
--vsenv `
-Dwerror=true `
-Dipc=enabled `
diff --git a/ci/scripts/build-with-meson.sh b/ci/scripts/build-with-meson.sh
index 7ef70dee..2e3778d4 100755
--- a/ci/scripts/build-with-meson.sh
+++ b/ci/scripts/build-with-meson.sh
@@ -61,7 +61,10 @@ function main() {
mkdir "${SANDBOX_DIR}"
show_header "Compile project with meson"
- meson setup "${SANDBOX_DIR}" --pkg-config-path $PKG_CONFIG_PATH
-Dwerror=true
+ meson setup "${SANDBOX_DIR}" \
+ --pkg-config-path $PKG_CONFIG_PATH \
+ -Dwerror=true \
+ -Dbuildtype=release
pushd "${SANDBOX_DIR}"
diff --git a/meson.build b/meson.build
index 7e384893..adb2d179 100644
--- a/meson.build
+++ b/meson.build
@@ -22,12 +22,7 @@ project(
version: '0.7.0-SNAPSHOT',
license: 'Apache 2.0',
meson_version: '>=1.3.0',
- default_options: [
- 'buildtype=release',
- 'c_std=c99',
- 'warning_level=2',
- 'cpp_std=c++17',
- ],
+ default_options: ['c_std=c99', 'warning_level=2', 'cpp_std=c++17'],
)
cc = meson.get_compiler('c')