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

Improve x86-linux build support. #619

Merged
merged 2 commits into from
Dec 24, 2024
Merged

Conversation

hvdijk
Copy link
Collaborator

@hvdijk hvdijk commented Dec 24, 2024

Overview

Improve x86-linux build support.

Reason for change

We provide CA_BUILD_32_BITS to attempt to build a 32-bit version of oneAPI Construction Kit, but this is fragile and does not always work. Notably, this has stopped working in our internal CI because CMake sometimes fails to pick up libraries required by LLVM.

Description of change

Regular cross compilation which we use for other targets is more reliable. To allow this, add an x86-toolchain.cmake file.

Anything else we should know?

This also reveals that our x86 detection was incomplete and would result in oneAPI Construction Kit failing to build on native 32-bit platforms, because CMAKE_SYSTEM_PROCESSOR will not be "x86", it will be e.g. "i686". Account for this in the detection.

Checklist

  • Read and follow the project Code of Conduct.
  • Make sure the project builds successfully with your changes.
  • Run relevant testing locally to avoid regressions.
  • Run clang-format-19 on all modified code.

We provide CA_BUILD_32_BITS to attempt to build a 32-bit version of
oneAPI Construction Kit, but this is fragile and does not always work.
Notably, this has stopped working in our internal CI because CMake
sometimes fails to pick up libraries required by LLVM.

Regular cross compilation which we use for other targets is more
reliable. To allow this, add an x86-toolchain.cmake file.

This also reveals that our x86 detection was incomplete and would result
in oneAPI Construction Kit failing to build on native 32-bit platforms,
because CMAKE_SYSTEM_PROCESSOR will not be "x86", it will be e.g.
"i686". Account for this in the detection.
@hvdijk hvdijk requested a review from a team as a code owner December 24, 2024 20:16
@hvdijk hvdijk merged commit 1f240ed into uxlfoundation:main Dec 24, 2024
15 checks passed
@hvdijk hvdijk deleted the x86-linux branch December 24, 2024 22:03
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