-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NativeAOT: remove some headers that are not needed #77042
Conversation
@@ -15,9 +15,6 @@ endif() | |||
|
|||
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_FILE_OFFSET_BITS=64) | |||
|
|||
check_include_files(sys/vmparam.h HAVE_SYS_VMPARAM_H) | |||
check_include_files(mach/vm_types.h HAVE_MACH_VM_TYPES_H) | |||
check_include_files(mach/vm_param.h HAVE_MACH_VM_PARAM_H) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAVE_PTHREAD_ATTR_GET_NP
and HAVE_UCONTEXT_T
are also unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAVE_PTHREAD_ATTR_GET_NP is used here https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp#L1116
I don't actually see where HAVE_UCONTEXT_T is being defined, but it is set to 1 somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HAVE_UCONTEXT_T
is in config.h.in and check_type_size(ucontext_t UCONTEXT_T)
in this file, which can be deleted.
Yes, HAVE_PTHREAD_ATTR_GET_NP is in use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just a small cleanup.