This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt][builtins] Define AT_HWCAP2 for AArch64
ClosedPublic

Authored by xry111 on Mar 7 2023, 5:33 AM.

Details

Summary

Without the definition, build fails on AArch64 with error: 'AT_HWCAP2' undeclared (first use in this function); did you mean 'AT_HWCAP'? with old Glibc versions.

Diff Detail

Event Timeline

xry111 created this revision.Mar 7 2023, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2023, 5:33 AM
xry111 requested review of this revision.Mar 7 2023, 5:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2023, 5:33 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
xry111 edited the summary of this revision. (Show Details)Mar 7 2023, 5:36 AM
xry111 updated this revision to Diff 503007.Mar 7 2023, 5:38 AM
nikic added a subscriber: nikic.Mar 7 2023, 5:38 AM
nikic added inline comments.
compiler-rt/lib/builtins/cpu_model.c
927
xry111 marked an inline comment as done.Mar 7 2023, 5:41 AM
xry111 added inline comments.
compiler-rt/lib/builtins/cpu_model.c
927

Just corrected after a cup of coffee :). Too sleepy today.

nikic accepted this revision.Mar 7 2023, 5:58 AM

LGTM

This revision is now accepted and ready to land.Mar 7 2023, 5:58 AM
nikic added a comment.Mar 8 2023, 7:06 AM

Do you have commit access, or do you need somebody to land this for you? If so, could you please share the Name <email> to use for the commit?

xry111 marked an inline comment as done.Mar 8 2023, 7:21 AM

Do you have commit access, or do you need somebody to land this for you? If so, could you please share the Name <email> to use for the commit?

I don't have commit access.

Xi Ruoyao <xry111@xry111.site>

This revision was automatically updated to reflect the committed changes.