diff options
| author | Shoaib Meenai <smeenai@fb.com> | 2024-08-26 13:11:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-26 13:11:05 -0700 |
| commit | 7945435f46c4b0a9fd08c6d76eee8ea8f5e37bca (patch) | |
| tree | 1f4c750aa5274c8ae4466e5d29773cd5617695cd /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | e1cf849e828b91c18cc323e6d912e853168c47ea (diff) | |
[clang] Add support for omitting only global destructors (#104899)
For mobile applications, it's common for global destructors to never be
called (because the applications have their own lifecycle independent of
the standard C runtime), but threads are created and destroyed as normal
and so thread-local destructors are still called. -fno-static-c++-destructors
omits unnecessary global destructors, which is useful for code size, but
it also omits thread-local destructors, which is unsuitable. Add a
ternary `-fc++-static-destructors={all,none,thread-local}` option
instead to allow omitting only global destructors.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
