aboutsummaryrefslogtreecommitdiff
path: root/test cases/rust
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-10-16 10:16:40 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-02-23 09:48:32 -0800
commita75ced6d50a3d479eda6dcdc9c3482493f2161f0 (patch)
tree18fa2240065c4dfbdebc790c78b0812409f5b325 /test cases/rust
parent05d49c6990aedb850266f22b40442af7a54e13fc (diff)
downloadmeson-a75ced6d50a3d479eda6dcdc9c3482493f2161f0.zip
meson-a75ced6d50a3d479eda6dcdc9c3482493f2161f0.tar.gz
meson-a75ced6d50a3d479eda6dcdc9c3482493f2161f0.tar.bz2
modules/rust: inject a C/C++ standard for bindgen
Especially for C++ this is very important.
Diffstat (limited to 'test cases/rust')
-rw-r--r--test cases/rust/12 bindgen/meson.build8
-rw-r--r--test cases/rust/12 bindgen/test.json2
2 files changed, 7 insertions, 3 deletions
diff --git a/test cases/rust/12 bindgen/meson.build b/test cases/rust/12 bindgen/meson.build
index 840a8af..0957581 100644
--- a/test cases/rust/12 bindgen/meson.build
+++ b/test cases/rust/12 bindgen/meson.build
@@ -1,7 +1,11 @@
# SPDX-license-identifer: Apache-2.0
-# Copyright © 2021-2022 Intel Corporation
+# Copyright © 2021-2024 Intel Corporation
-project('rustmod bindgen', ['c', 'cpp', 'rust'], meson_version : '>= 0.63')
+project(
+ 'rustmod bindgen',
+ ['c', 'cpp', 'rust'],
+ meson_version : '>= 0.63',
+ default_options : ['cpp_std=c++17'])
prog_bindgen = find_program('bindgen', required : false)
if not prog_bindgen.found()
diff --git a/test cases/rust/12 bindgen/test.json b/test cases/rust/12 bindgen/test.json
index d45543b..25fafd2 100644
--- a/test cases/rust/12 bindgen/test.json
+++ b/test cases/rust/12 bindgen/test.json
@@ -4,7 +4,7 @@
},
"stdout": [
{
- "line": "test cases/rust/12 bindgen/meson.build:38: WARNING: Project targets '>= 0.63' but uses feature introduced in '1.0.0': \"rust.bindgen\" keyword argument \"include_directories\" of type array[str]."
+ "line": "test cases/rust/12 bindgen/meson.build:42: WARNING: Project targets '>= 0.63' but uses feature introduced in '1.0.0': \"rust.bindgen\" keyword argument \"include_directories\" of type array[str]."
}
]
}