diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2023-10-16 10:16:40 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-02-23 09:48:32 -0800 |
| commit | a75ced6d50a3d479eda6dcdc9c3482493f2161f0 (patch) | |
| tree | 18fa2240065c4dfbdebc790c78b0812409f5b325 /test cases | |
| parent | 05d49c6990aedb850266f22b40442af7a54e13fc (diff) | |
| download | meson-a75ced6d50a3d479eda6dcdc9c3482493f2161f0.tar.gz | |
modules/rust: inject a C/C++ standard for bindgen
Especially for C++ this is very important.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/rust/12 bindgen/meson.build | 8 | ||||
| -rw-r--r-- | test cases/rust/12 bindgen/test.json | 2 |
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 840a8afab..09575815c 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 d45543b13..25fafd2e1 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]." } ] } |
