[clang] [clang] replaced the usage of `asctime` with `std::put_time` (PR #99075)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 25 04:56:17 PDT 2024


AaronBallman wrote:

> > We have a mixture of both `std::tm` and `::tm` in here, try switching to using `::tm` and see if that helps.
> 
> Unfortunately not: I always get the undefined reference to the `std::tm const *` version, no matter what I tried.

Drat!

If you dump the symbols from the STL shared library on the system, is there one for `time_put` at all? If so, what is the mangled symbol it exports?

(As a perhaps terrible idea, could we use the `alias` attribute on a redeclaration to try to force to link against the correct mangling for Solaris only?)

https://github.com/llvm/llvm-project/pull/99075


More information about the cfe-commits mailing list