Skip to content

Conversation

@kinke
Copy link
Member

@kinke kinke commented Apr 11, 2025

By preferring the LLVM host target triple (instead of hardcoding a Linux x86_64 glibc one), and falling back to the OS name alone if that directory exists.

@kinke kinke force-pushed the cmake_compiler-rt_default branch 2 times, most recently from dd4e1c0 to 3a851d6 Compare April 11, 2025 12:46
arch: armv7a
android_x86_arch: i686
extra_cmake_flags: >-
-DCOMPILER_RT_LIBDIR_OS=linux
Copy link
Member Author

Choose a reason for hiding this comment

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

Our Android LLVM binaries have been cross-compiled on Linux, so not sure if it should always be linux (not android) on Android in general (as CMake special case), or whether this is just a side-effect of cross-compiling LLVM incl. compiler-rt.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah nice, thx for checking!

kinke added 2 commits April 11, 2025 19:00
By preferring the LLVM host target triple (instead of hardcoding a
Linux x86_64 glibc one), and falling back to the OS name alone if
that directory exists.
@kinke kinke force-pushed the cmake_compiler-rt_default branch from 3a851d6 to cf624b2 Compare April 11, 2025 17:01
@kinke kinke marked this pull request as ready for review April 11, 2025 17:02
} else if (triple.isAndroid()) {
osNameCandidates.emplace_back("linux");
} else {
osNameCandidates.emplace_back(triple.str());
Copy link
Member Author

@kinke kinke Apr 11, 2025

Choose a reason for hiding this comment

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

This seems to be required for the FreeBSD LLVM 19 port at least.

@kinke
Copy link
Member Author

kinke commented Apr 15, 2025

Relevant changes cherry-picked to #4665.

@kinke kinke closed this Apr 15, 2025
@kinke kinke deleted the cmake_compiler-rt_default branch April 15, 2025 18:48
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.

2 participants