All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc-runtime: Fix __FILE__ related reproducablity issues
@ 2021-04-28 20:14 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2021-04-28 20:14 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

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>
---
 meta/recipes-devtools/gcc/gcc-runtime.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 2aca96c408..59d9a24686 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -60,6 +60,7 @@ DEBUG_PREFIX_MAP_class-target = " \
    -fdebug-prefix-map=${S}/libiberty=${REL_S}/libstdc++-v3/../libiberty \
    -fdebug-prefix-map=${S}/libgcc=${REL_S}/libstdc++-v3/../libgcc \
    -fdebug-prefix-map=${B}=${REL_S} \
+   -ffile-prefix-map=${B}/${HOST_SYS}/libstdc++-v3/include=${includedir}/c++/${BINV} \
    "
 
 do_configure () {
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-28 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 20:14 [PATCH] gcc-runtime: Fix __FILE__ related reproducablity issues Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.