On 25.11.2021 14:39, 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. > > This means that we also need to check clang version to figure out > which command we need to use to redefine symbol. > > I don't know which version of clang change behavior, we will guess > 4.0.
When I did this earlier work, it was clang5 that I used. Which would seem to mean the change in behavior was in version 6. Jan
