diff options
author | Peter Waller <peter.waller@arm.com> | 2024-01-29 11:07:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 11:07:02 +0000 |
commit | 2e2b6b53f5f63179b52168ee156df7c76b90bc71 (patch) | |
tree | 0757c610be56f8aeb01980d95b3bb20f5532ccc2 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | ef83894810db8ec72489f1b45bf943938f6b0af4 (diff) | |
download | llvm-2e2b6b53f5f63179b52168ee156df7c76b90bc71.zip llvm-2e2b6b53f5f63179b52168ee156df7c76b90bc71.tar.gz llvm-2e2b6b53f5f63179b52168ee156df7c76b90bc71.tar.bz2 |
[AArch64][compiler-rt] Avoid use of libc header in sme-libc-routines (#79454)
The use of `#include <stdlib.h>` introduces a libc dependency. In many
build environments such a file can be found under e.g. /usr/include, but
this does not necessarily correspond to the libc in use, which may not
be available until after the builtins have been built.
So far as I understand, it's not valid to have a dependency on libc from
builtins; there are a handful of such includes in builtins, but they are
protected by ifdefs.
Instead, use <stddef.h>, which provides `size_t` and is provided by the
compiler's resource headers and so should always be available.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions