]> code.ossystems Code Review - openembedded-core.git/commit
gcc-runtime: Fix __FILE__ related reproducablity issues
authorKhem Raj <raj.khem@gmail.com>
Wed, 28 Apr 2021 20:14:40 +0000 (13:14 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 May 2021 21:46:42 +0000 (22:46 +0100)
commit972c50d6e46ee9dfba8b8ea3867ebdbf24001e6e
tree8fdbaa0dad920e4beb72e69e30561ceb4b83aac1
parent1f8132450b0192ad0c9f35f8b5dbac186c240e29
gcc-runtime: Fix __FILE__ related reproducablity issues

libstdc++ uses assertion macros which use __FILE__ macros and

  if (__builtin_expect(!bool(_Condition), false))                      \
    std::__replacement_assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, \
                              #_Condition)

This ends up using absolute paths into build tree for the cases where
the charconv header is used, therefore replace the file prefix paths
with on-target paths to make them build dir independent

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-runtime.inc