]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
rust-common: Add CXXFLAGS
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Aug 2022 10:52:10 +0000 (11:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Aug 2022 14:41:36 +0000 (15:41 +0100)
Similarly to CC and CCLD, handle CXX flags too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rust-common.bbclass

index cb811ac5da7db4ce1a23d54f384e58a026104bff..0c9363b31a172e58ad9b33afe62892a7c763b855 100644 (file)
@@ -177,7 +177,7 @@ do_rust_create_wrappers () {
        # Yocto Target / Rust Target C compiler
        create_wrapper "${RUST_TARGET_CC}" "${WRAPPER_TARGET_CC}" "${WRAPPER_TARGET_LDFLAGS}"
        # Yocto Target / Rust Target C++ compiler
-       create_wrapper "${RUST_TARGET_CXX}" "${WRAPPER_TARGET_CXX}"
+       create_wrapper "${RUST_TARGET_CXX}" "${WRAPPER_TARGET_CXX}" "${CXXFLAGS}"
        # Yocto Target / Rust Target linker
        create_wrapper "${RUST_TARGET_CCLD}" "${WRAPPER_TARGET_CCLD}" "${WRAPPER_TARGET_LDFLAGS}"
        # Yocto Target / Rust Target archiver