Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIBCLC] Modify libclc-remangler cmds for cross-compile support #16182

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

jackm97
Copy link

@jackm97 jackm97 commented Nov 26, 2024

Because libclc-remangler commands executed in cmake use libclc::libclc-remangler, builds where CMAKE_CROSSCOMPILING=ON do not work correctly since cmake assumes the target is not executable on the host machine.

This change modifies the custom commands to use the cache variable LIBCLC_REMANGLER_PATH instead, where this variable is set in a similar way as llvm tools such as llvm-config by calling compile_native_tool.

Because libclc-remangler commands executed in cmake use
`libclc::libclc-remangler`, builds where `CMAKE_CROSSCOMPILING=ON` do
not work correctly since cmake assumes the target is not executable on
the host machine.

This change modifies the custom commands to use the cache variable
`LIBCLC_REMANGLER_PATH` instead, where this variable is set in a similar
way as llvm tools such as `llvm-config` by calling
`compile_native_tool`.

Signed-off-by: Jack Myers <[email protected]>
@jackm97 jackm97 marked this pull request as ready for review November 26, 2024 00:36
@jackm97 jackm97 requested a review from a team as a code owner November 26, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant