mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 15:32:27 +02:00
vulkan-validation-layers: fix compile failure with DEBUG_BUILD = 1
When building with GCC 14+ using -Og (DEBUG_BUILD = 1), got the following errors: $ echo 'DEBUG_BUILD = "1"' >> conf/local.conf $ echo 'DISTRO_FEATURES:append = " vulkan opengl"' >> conf/local.conf $ bitbake vulkan-validation-layers ... |TOPDIR/tmp/work/core2-32-wrs-linux/vulkan-validation-layers/1.4.309.0/git/layers/./external/ xxhash.h:4822:1: error: inlining failed in call to 'always_inline' 'void XXH3_scrambleAcc_sse2 (void*, const void*)': function not considered for inlining ... Refer [1], using XXH_NO_INLINE_HINTS when compiling with -Og (DEBUG_BUILD = 1) [1] https://github.com/Cyan4973/xxHash/issues/943 (From OE-Core rev: b52c435d9011286aba92ec82dfa83767173da583) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2713f56afe
commit
9544bd9f57
@@ -26,6 +26,8 @@ EXTRA_OECMAKE = "\
|
||||
-DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
|
||||
"
|
||||
|
||||
CXXFLAGS:append = " ${@oe.utils.vartrue('DEBUG_BUILD', '-DXXH_NO_INLINE_HINTS=1', '', d)}"
|
||||
|
||||
PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
|
||||
PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user