diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2025-03-20 14:40:09 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-20 17:49:16 +0000 |
| commit | 5d2ed873c8399dae572670e7ceec1b226f18aad0 (patch) | |
| tree | a0e1b2529d5275f482724cf998a651192c84c83a | |
| parent | 503ff92f45060fd9e0a2db0d75019a1aaefdcec2 (diff) | |
| download | poky-5d2ed873c8399dae572670e7ceec1b226f18aad0.tar.gz | |
sanity: Check if the C++ toolchain supports --std=gnu++20
This is needed to build nodejs from meta-oe. Check this early to avoid
an error later in the build.
Fixes [YOCTO #15804]
(From OE-Core rev: 19004950ad5691ef51f7fcf946558bd0de561403)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-global/sanity.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index d415611e3d..192582b82e 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass | |||
| @@ -804,6 +804,11 @@ def check_sanity_version_change(status, d): | |||
| 804 | # Check if linking with lstdc++ is failing | 804 | # Check if linking with lstdc++ is failing |
| 805 | status.addresult(check_cpp_toolchain_flag(d, "-lstdc++")) | 805 | status.addresult(check_cpp_toolchain_flag(d, "-lstdc++")) |
| 806 | 806 | ||
| 807 | # Check if the C++ toochain support the "--std=gnu++20" flag | ||
| 808 | status.addresult(check_cpp_toolchain_flag(d, "--std=gnu++20", | ||
| 809 | "An error occurred during checking the C++ toolchain for '--std=gnu++20' support. " | ||
| 810 | "Please use a g++ compiler that supports C++20 (e.g. g++ version 10 onwards).")) | ||
| 811 | |||
| 807 | def sanity_check_locale(d): | 812 | def sanity_check_locale(d): |
| 808 | """ | 813 | """ |
| 809 | Currently bitbake switches locale to en_US.UTF-8 so check that this locale actually exists. | 814 | Currently bitbake switches locale to en_US.UTF-8 so check that this locale actually exists. |
