On 25.01.2022 12:00, Anthony PERARD wrote: > clang 6.0 and newer behave like gcc in regards for the FILE symbol, so > only the filename rather than the full path to the source file. > > clang 3.8.1-24 (in our debian:stretch container) and 3.5.0-10 > (in our debian:jessie container) do store the full path to the source > file in the FILE symbol. > > Also, based on commit 81ecb38b83 ("build: provide option to > disambiguate symbol names"), which were using clang 5, the change of > behavior likely happened in clang 6.0. > > This means that we also need to check clang version to figure out > which command we need to use to redefine symbol. > > Signed-off-by: Anthony PERARD <anthony.per...@citrix.com>
The "likely" in the description still worries me some. Roger, would you happen to know, or know of a way to find out for sure ("sure" not meaning to exclude the usual risk associated with version number checks)? Jan