Skip to content

Conversation

@quic-garvgupt
Copy link
Contributor

Currently, ENABLE_BAREMETAL_AARCH64_FMV is added to builtin defines for all baremetal targets though it is only needed for aarch64. This patch fixes this by adding it only for aarch64 target.

elseif(COMPILER_RT_BAREMETAL_BUILD)
list(APPEND BUILTIN_DEFS ENABLE_BAREMETAL_AARCH64_FMV)
foreach (arch ${BUILTIN_SUPPORTED_ARCH})
if("${arch}" STREQUAL "aarch64")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will miss some target names which may also require ENABLE_BAREMETAL_AARCH64_FMV (e.g. arm64, arm64ec). I think we can use something like this instead:

Suggested change
if("${arch}" STREQUAL "aarch64")
if("${arch}" MATCHES "arm64|aarch64")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

support on aarch64 target

Currently, `ENABLE_BAREMETAL_AARCH64_FMV` is added to builtin defines
for all baremetal targets though it is only needed for aarch64. This
patch fixes this by adding it only for aarch64 target.

Change-Id: Ie469d01961e9d4992c1a430d7e9b089ae9549079
@quic-garvgupt quic-garvgupt merged commit 3a06e9a into llvm:main Jun 17, 2025
7 checks passed
@quic-garvgupt quic-garvgupt deleted the sme branch June 17, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants