diff options
| author | Rainer Orth <ro@gcc.gnu.org> | 2024-07-26 16:51:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-26 16:51:08 +0200 |
| commit | 599de135551cdb95a479b7f1f032aff506effeac (patch) | |
| tree | 64355049a14ad257caf855a6e5dbc9f9f8be6a1a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 862d837e483437b33f5588f89e62085de3a806b9 (diff) | |
[clang] Handle tm mangling on Solaris in PPMacroExpansion.cpp (#100724)
The introduction of `std::put_time` in
fad17b43dbc09ac7e0a95535459845f72c2b739a broke the Solaris build:
```
Undefined first referenced
symbol in file
_ZNKSt8time_putIcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE3putES3_RSt8ios_basecPKSt2tmPKcSB_ lib/libclangLex.a(PPMacroExpansion.cpp.o)
ld: fatal: symbol referencing errors
```
As discussed in PR #99075, the problem is that GCC mangles `std::tm` as
`tm` on Solaris for binary compatility, while `clang` doesn't (Issue
#33114).
As a stop-gap measure, this patch introduces an `asm` level alias to the
same effect.
Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and
`x86_64-pc-linux-gnu`.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
